How can i find the both endpoints coordinates for a particular label number ?

1 Ansicht (letzte 30 Tage)
First I label the image. so if i want to find the endpoints coordinates for a specific label then what i need to do ?

Antworten (1)

Guillaume
Guillaume am 18 Sep. 2017
See the 'BoundingBox' property returned by regionprops that you can call directly on your labeled image.
stats - regionprops(yourlabeledimage);
desiredboundingbox = stats(desiredlabel).BoundingBox

Kategorien

Mehr zu Images finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by