imrotate 后查找像素位置(matlab)

Finding pixel position after imrotate (matlab)

你好

我在 imrotate 后无法找到像素位置

`img = imread('rice.png');
point = [100;120];
angle = 45;
img_rot = imrotate(img,angle);
new_point ??`

简单方法:对具有单个点的图像应用相同的变换:

s=size(img);
marker=zeros(s(1:2));
marker(point(1),point(2))=1;
marker_rot = imrotate(marker,angle);
[x,y]=find(marker_rot)