<< ReadImageFromVideo Image Processing Design SegmentByThreshold >>

Image Processing Design >> Image Processing Design > SearchBlobs

SearchBlobs

searches the connected regions in a binary image

Calling Sequence

BlobImage = SearchBlobs(Image);

Parameters

Image

2D matrix of type boolean

BlobImage

2D matrix of type int32 (in Scilab 5.2.0) or uint32 (in Scilab 5.2.1 or higher).

Description

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.

Examples

Image = rand(9, 9) // generate random image

Threshold = CalculateOtsuThreshold(Image); // calculate a threshold

BinaryImage = SegmentByThreshold(Image, Threshold) // segment image

BlobImage = SearchBlobs(BinaryImage)

See also


Report an issue
<< ReadImageFromVideo Image Processing Design SegmentByThreshold >>