BlobImage = SearchBlobs(Image) [BlobImage, NumberOfBlobs] = SearchBlobs(Image)
2D matrix of type boolean
2D matrix of type uint32
number of connected regions. This parameter is optional.
This function searches the number of connected regions in a binary image. All pixels belonging to the same connected region are assigned the same number. All pixels that do not belong to a region are background pixels and have the number 0.