How can i find the both endpoints coordinates for a particular label number ?
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
First I label the image. so if i want to find the endpoints coordinates for a specific label then what i need to do ?
1 comentario
Image Analyst
el 18 de Sept. de 2017
Define endpoints. You might find the attached demos interesting.
Respuestas (1)
Guillaume
el 18 de Sept. de 2017
See the 'BoundingBox' property returned by regionprops that you can call directly on your labeled image.
stats - regionprops(yourlabeledimage);
desiredboundingbox = stats(desiredlabel).BoundingBox
Ver también
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!