二维矩阵变换的顺序/序列
我有一个图像包含:
- 一组充当方向标记的坐标。
- 一组包含数据的坐标。
我们将此图像称为 A。
该图像被输入到扫描仪,扫描仪返回应用了某些变换(旋转、缩放、平移)的图像副本。我们将变换后的图像称为 B。当然,我不知道所应用的变换值。
收到转换后的图像 (B) 后,我可以轻松跟踪方向标记的坐标并计算旋转角度、缩放 (x,y) 和平移 (x,y)。
现在我需要检索数据坐标,因为我已经知道转换后的方向坐标。
如果数据点位于图像 A 中的位置 (10, 10),那么它会位于图像 B 中的什么位置?鉴于所有三个变换都是已知的。
当我应用简单的矩阵变换时,我计算的变换后的数据点不准确。我尝试改变转换的顺序,但这似乎完全没有效果。
我做错了什么?是转换的顺序/顺序还是我缺少的其他内容?
编辑
请参阅此问题了解上下文。
I have an image containing:
- a set of coordinates that act as orientation markers.
- a set of coordinates containing data.
Let's call this image A.
This image is fed to a scanner that returns a copy of the image with certain transformations applied (rotation, scale, translation). Let's call the transformed image B. The transformation values applied are not know to me, of course.
Once I receive the transformed image (B), I can easily track the coordinates of the orientation markers and calculate the angle of rotation, scale (x,y) and translation (x,y).
Now I need to retrieve the data coordinates since I already know the transformed orientation coordinates.
If a data point was at location (10, 10) in image A, where would it be in image B? Given that all three transformations are known.
When I apply a simple matrix transformation the transformed data points I calculate are inaccurate. I tried changing the order of transformations but that seems to have absolutely no effect.
What am I doing wrong? Is it the order/sequence of transformations or something else that I'm missing?
EDIT
Please refer to this question for context.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论