How to rotate imellipse
Ältere Kommentare anzeigen
Hello fellow Matlab users,
I'm currently using the imellipse function to draw an ellipse on an image. I would like to rotate the ellipse interactively. However I cannot get this to work. Does anyone have experience with rotating ellipses? Please share, it would help me out a lot!
With kind regards,
Erik Groot Jebbink
Akzeptierte Antwort
Weitere Antworten (3)
Tim Jackman
am 25 Sep. 2018
1 Stimme
Beginning in R2018b, you can create an interactive ellipse ROI using the drawellipse function. This new ROI supports interactive rotation.
Matt J
am 23 Mai 2013
0 Stimmen
I believe imellipse objects are 4 DOF only :-(
erik
am 27 Mai 2013
0 Stimmen
3 Kommentare
as hz
am 27 Okt. 2013
Very interesting, is it possible to share this code?
Image Analyst
am 27 Okt. 2013
as hz, I already pretty much gave code. All you need to do is to put it into a function called DrawEllipse which you call from the sliders. In the slider callbacks you set rotationAngle or some x and y offset/shift/translation, then call DrawEllipse passing those in.
Kategorien
Mehr zu Image Arithmetic finden Sie in Hilfe-Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
