MATLAB Answers

how to measure the wide of object in binary image ?

7 views (last 30 days)
i have a binary image, and i want to measure the wide of object ( white pixel). how to measure it ? please help. thanks


Sign in to comment.

Accepted Answer

Image Analyst
Image Analyst on 2 Mar 2016
See my Image Segmentation Tutorial and see how I get the bounding box.


Show 8 older comments
Guillaume on 4 Mar 2016
At the matlab prompt, type
doc regionprops
to see the documentation of regionprops where it's all explained.
Image Analyst
Image Analyst on 4 Mar 2016
It gives you a structure array. Each structure in the array is a structure with field that correspond to the measurements you asked regionprops() to make. For example measurements(7) has all the measurements for blob #7, like Area, Centroid and BoundingBox: measurements(7).Area, measurements(7).Centroid, and measurements(7).BoundingBox.
ElizabethR on 5 Mar 2016
ooohhh i see.. okay thank you so much @Image Analyst, @Guillaume GBU :D

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!