searches the connected regions in a binary image
BlobImage = SearchBlobs(Image);
2D matrix of type boolean
2D matrix of type int32 (in Scilab 5.2.0) or uint32 (in Scilab 5.2.1 or higher).
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.
Image = rand(9, 9) // generate random image Threshold = CalculateOtsuThreshold(Image); // calculate a threshold BinaryImage = SegmentByThreshold(Image, Threshold) // segment image BlobImage = SearchBlobs(BinaryImage) | ![]() | ![]() |