How to rotate imellipse
显示 更早的评论
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
采纳的回答
更多回答(3 个)
Tim Jackman
2018-9-25
1 个投票
Beginning in R2018b, you can create an interactive ellipse ROI using the drawellipse function. This new ROI supports interactive rotation.
Matt J
2013-5-23
0 个投票
I believe imellipse objects are 4 DOF only :-(
erik
2013-5-27
0 个投票
3 个评论
as hz
2013-10-27
Very interesting, is it possible to share this code?
Image Analyst
2013-10-27
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.
类别
在 帮助中心 和 File Exchange 中查找有关 Image Arithmetic 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
