bwarea & area, white/black ratio
Show older comments
Hi,
Can someone please explain me what is the difference of bwarea & area.
I have an image which is black and white (after segmentation and fill) & I wish to calculate the area of an object (as I understand done by bwarea) relative to the image area (imageArea = regionprops(image_name, 'Area')), more or less calculating the white/black ratio.
Any other ideas is welcome.
Thanks.
Accepted Answer
More Answers (1)
dan kin
on 3 Oct 2012
0 votes
3 Comments
Image Analyst
on 3 Oct 2012
Edited: Image Analyst
on 3 Oct 2012
You are correct. It is not the white to black ratio - it is an area in pixels.
shivam sahil
on 21 Dec 2017
Hey! I want to implement the same code for RGB to get pixel count of particular rgb index, please guide me with the code for the same.
Image Analyst
on 22 Dec 2017
See attached demo. Also see the function colorcloud().
Categories
Find more on Region and Image Properties in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!