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

2 views (last 30 days)
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

Accepted Answer

Matt J
Matt J on 31 Mar 2021
Edited: Matt J on 31 Mar 2021
area=bwarea( bwareafilt(intensityImage>1,1) )

More Answers (0)

Community Treasure Hunt

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

Start Hunting!