change e of coordinates 坐标轴的变换
To draw the stock graph, I must change the scale of the dollar and day values into SVG view coordinates.
为了绘制股票图像,必须将美元和每日数据的尺度转化成svg视图坐标。
But the Robot works with screen coordinates instead of Swing component references, so using it directly in tests will make the tests fragile, meaning any change in layout will break them.
不过Robot仅对屏幕坐标有效,而对Swing组件参考无效,因此直接使用它会使测试很脆弱,这意味着任何布局变化都会中止测试。
First, initialize the image sequence, and then define search area, compute the MAD, return the coordinates of image, transform the coordinates, at last, get the change of two images.
首先初始化序列图像,然后确定搜索区域,计算最小绝对差,返回图像的坐标值,进行坐标变换,最终计算得出两帧图像的位置变化;
应用推荐