Filter löschen
Filter löschen

For the 'regionprops' function

1 Ansicht (letzte 30 Tage)
Songqiu
Songqiu am 27 Okt. 2018
Beantwortet: Walter Roberson am 27 Okt. 2018
Hello, everyone, Are the 'Centroid' attributes obtained by the 'regionprops' function the origins of the ellipses? Or how can I get the origins of the ellipses? Thank you very much.
  2 Kommentare
Matt J
Matt J am 27 Okt. 2018
What ellipses are you referring to? Are the objects in your image ellipses, or are you trying to fit them with ellipses? And what is meant by their "origin"? Do you mean their centers?
Songqiu
Songqiu am 27 Okt. 2018
The objects are in my image ellipses. Yes, the centres of the ellipses.

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

Walter Roberson
Walter Roberson am 27 Okt. 2018
Ellipses (actual ones) are always symmetric along both the major and minor axes, so they have a well defined origin which is at their centroid.
If you have partial ellipses instead of full ellipses then the centroid of the region will not generally match the origin of the ellipse.

Weitere Antworten (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by