旋转矩阵后,有些点消失,有些点重复
我有一个包含某些项目位置的矩阵(x1、x2、x3、x4、x5):
我想使用 scipy.ndimage.rotate 方法应用 55° 旋转: np_after = ndimage.rotate(df, angle, reshape = False, order = 0)
旋转后,我获得以下矩阵:
我的点“x1”、“x3”、“x4”消失了,我的点“x5”已被复制。
您是否知道如何确保我们将旋转矩阵中的每个点仅平移一次?
谢谢 !!
I have a matrix containing positions of some items (x1, x2, x3, x4, x5):
And I want to apply a 55° rotation using scipy.ndimage.rotate method:
np_after = ndimage.rotate(df, angle, reshape = False, order = 0)
After rotation, I obtain the following matrix:
My points "x1", "x3", "x4" have disappeared, and my point "x5" has been duplicated.
Do you have an idea how to be sure we have each point translated in the rotated matrix, and only one time?
Thanks !!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论