How to retrieve the centroid and angle of an ellipse drawn on an image in a gui?
4 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
I want to create an interactive ellipse on an image in a gui and retrieve its poperties like semi-major axis,semi-minor axis, angle and centroid for the same. I am struck at this. Using imellipse, I am not able to get the centroid and the angle. I have to get these values in a structure and then generate a xml file of it. Thanks!
0 commentaires
Réponses (2)
Matt J
le 7 Juin 2016
If you have a well-distributed set of points on the ellipse, you can use the attached file to fit the points. The output gives all the ellipse parameters that you mentioned.
2 commentaires
Image Analyst
le 7 Juin 2016
See my attached demo which will draw ellipses at various angles.
0 commentaires
Voir également
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!