How to change imellipse to include theta?
Afficher commentaires plus anciens
Is there a way to hack imellipse such that I can draw an ellipse and then change the angle so that major and minor axes do not just lie on the x and y axes?
I'm currently "brute forcing" it but I was wondering if anyone knows of an easier way.
Réponse acceptée
Plus de réponses (1)
Walter Roberson
le 6 Jan 2012
0 votes
No, you cannot do that, or at least not without re-parenting against imroi instead of imrect and re-doing a number of functions.
The current implementation mirrors the rectangle() function, which can create ellipses that are aligned with the axes but not tilted ones.
You could possibly parent the imellipse against an hgtransform and set the transformation matrix to do the rotation, but I think that might encounter some difficulties in (e.g.) resizing the ellipse.
1 commentaire
Anathea Pepperl
le 7 Jan 2012
Catégories
En savoir plus sur Convert Image Type dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!