How can i find the both endpoints coordinates for a particular label number ?
1 次查看(过去 30 天)
显示 更早的评论
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 个评论
回答(1 个)
Guillaume
2017-9-18
See the 'BoundingBox' property returned by regionprops that you can call directly on your labeled image.
stats - regionprops(yourlabeledimage);
desiredboundingbox = stats(desiredlabel).BoundingBox
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!