clustering and pixel count

1 次查看(过去 30 天)
I want to differentially recognize circular spots within a binary image.
I also want to count how many pixels are inside each individually recognized spot.
Is there a way?

采纳的回答

Image Analyst
Image Analyst 2021-5-30
I do exactly this in my Image Segmentation Tutorial with the standard coins demo image:
Please study it. Basically
props = regionprops(mask, 'Area');
allAreas = [props.Area] % Areas of all blobs in pixels.
but there's more to it so look over my well commented tutorial.
  6 个评论
HJ
HJ 2021-5-31
编辑:HJ 2021-5-31
Thanks for the advice.
I followed the tutorial and verified that the coin was detected using the regionprops function.
However, there are problems that are not recognized in some coins. I wonder if I can lower the coin detection sensitivity.
Image Analyst
Image Analyst 2021-5-31
What problems? Were they supposed to be recognized? What steps did you take to recognize/detect those problems?

请先登录,再进行评论。

更多回答(1 个)

Matt J
Matt J 2021-5-29
Yes, regionprops(___,'Area')

类别

Help CenterFile Exchange 中查找有关 Image Segmentation and Analysis 的更多信息

产品


版本

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by