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

12 vues (au cours des 30 derniers jours)
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

Réponse acceptée

Matt J
Matt J le 31 Mar 2021
Modifié(e) : Matt J le 31 Mar 2021
area=bwarea( bwareafilt(intensityImage>1,1) )

Plus de réponses (0)

Catégories

En savoir plus sur Read, Write, and Modify Image dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by