Rotate a selected object in an image around a predefined point on Image
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Ashkan sed
le 16 Juin 2018
Commenté : Ashkan sed
le 19 Juin 2018
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.

0 commentaires
Réponse acceptée
Image Analyst
le 16 Juin 2018
You have to crop the image, use imcrop(). Then rotate using imrotate(). After that it's just geometry and pasting. See attached copy and paste demo.
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Geometric Transformation and Image Registration dans Help Center et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!