How to Find the min and max coordinates of an object in an image
Show older comments
How to find the minX,minY,maxX,maxY of an object in a binary image
Accepted Answer
More Answers (1)
Image Analyst
on 3 Oct 2015
0 votes
Note: Matt's solution only works if you have only 1 object in your binary image. If you have multiple objects, use regionprops() and ask for the BoundingBox measurement. See my Image Segmentation Tutorial for a full demo: http://www.mathworks.com/matlabcentral/fileexchange/?term=authorid%3A31862
1 Comment
Matt J
on 16 Feb 2019
Or the PixelList measurement.
Categories
Find more on Region and Image Properties in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!