I have defined my object with the below function.
imshow(I);h = impoly; M = ~h.createMask();I(M) = 0;
As an example I have attached an image with rotated object inside. I would be grateful if you could help me with that. The rotation angle, center point and distance from the center point is defined previously.
Best Answer