clustering and pixel count

조회 수: 1 (최근 30일)
HJ
HJ 2021년 5월 29일
댓글: Image Analyst 2021년 5월 31일
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