How to calculate amount of connected pixels in blob of an intensity image

조회 수: 3 (최근 30일)
Hello,
My aim is to calculate the amount of connected pixels in a 'blob'.
I only need to know the amount in the blob with the largest number of pixels.
I only want to include pixels in the blob that have a value greater than 1.
I have included two examples of the type of intensity images I am looking to analyse.
I have looked into regionprops but either I don't understand it or it isn't what I'm looking for.
Any help is really appreciated.
Many thanks,
Ollie

채택된 답변

Matt J
Matt J 2021년 3월 31일
편집: Matt J 2021년 3월 31일
area=bwarea( bwareafilt(intensityImage>1,1) )

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Image Segmentation and Analysis에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by