bwarea & area, white/black ratio
显示 更早的评论
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.
采纳的回答
更多回答(1 个)
dan kin
2012-10-3
0 个投票
3 个评论
Image Analyst
2012-10-3
编辑:Image Analyst
2012-10-3
You are correct. It is not the white to black ratio - it is an area in pixels.
shivam sahil
2017-12-21
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
2017-12-22
See attached demo. Also see the function colorcloud().
类别
在 帮助中心 和 File Exchange 中查找有关 Region and Image Properties 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!