Professional Documents
Culture Documents
http://www.mathworks.in/help/vision/ref/vision.blobanalysis-class.html 1/6
vision.BlobAnalysis System object
Package: vision
Properties of connected regions
Description
The BlobAnalysis object computes statistics for connected regions in a binary image.
Use the step syntax below with input binary image, BW, blob analysis object, H, and any optional properties.
The step method computes and returns statistics of the input binary image depending on the property values
specified. The order of the returned values when there are multiple outputs are in the order they are described
below:
[AREA,CENTROID,BBOX] = step(H,BW) returns the area, centroid and the bounding box of the blobs when
the AreaOutputPort, CentroidOutputPort and BoundingBoxOutputPort properties are set to true. These
are the only properties that are set to true by default. If you set any additional properties to true, the
corresponding outputs follow the AREA,CENTROID, and BBOX outputs.
[ ___ ,MAJORAXIS] = step(H,BW) computes the major axis length MAJORAXIS of the blobs found in input
binary image BW when the MajorAxisLengthOutputPort property is set to true.
[ ___ ,MINORAXIS] = step(H,BW) computes the minor axis length MINORAXIS of the blobs found in input
binary image BW when the MinorAxisLengthOutputPort property is set to true.
[ ___ ,ORIENTATION] = step(H,BW) computes the ORIENTATION of the blobs found in input binary image BW
when the OrientationOutputPort property is set to true.
[ ___ ,ECCENTRICITY] = step(H,BW) computes the ECCENTRICITY of the blobs found in input binary image
BW when the EccentricityOutputPort property is set to true.
[ ___ ,EQDIASQ] = step(H,BW) computes the equivalent diameter squared EQDIASQ of the blobs found in
input binary image BW when the EquivalentDiameterSquaredOutputPort property is set to true.
[ ___ ,EXTENT] = step(H,BW) computes the EXTENT of the blobs found in input binary image BW when the
ExtentOutputPort property is set to true.
[ ___ ,PERIMETER] = step(H,BW) computes the PERIMETER of the blobs found in input binary image BW when
the PerimeterOutputPort property is set to true.
[ ___ ,LABEL] = step(H,BW) returns a label matrix LABEL of the blobs found in input binary image BW when
the LabelMatrixOutputPort property is set to true.
Code Generation Support
Supports MATLAB