How can I use scipy.ndimage.interpolation.affine_transform to rotate an image about its centre?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am perplexed by the API to scipy.ndimage.interpolation.affine_transform . And judging by this issue I'm not the only one. I'm actually wanting to do more interesting things with affine_transform than just rotating an image, but a rotation would do for starters. (And yes I'm well aware of scipy.ndimage.interpolation.rotate , but figuring out how to drive affine_transform is what interests me here). When I want to do this sort of thing in systems like OpenGL, I'm think in terms of computing the transform which applies a 2x2 rotation matrix R