vision.BlobAnalysis
Properties of connected regions
Description
To compute statistics for connected regions in a binary image
To track a set of points:
Create the
vision.BlobAnalysisobject and set its properties.Call the object with arguments, as if it were a function.
To learn more about how System objects work, see What Are System Objects?
Creation
Description
returns a blob
analysis object, Hblob = vision.BlobAnalysisH, used to compute statistics for
connected regions in a binary image.
sets properties using one or more name-value pairs. Enclose each property name in
quotes. For example, Hblob = vision.BlobAnalysis(Name,Value)Hblob =
vision.BlobAnalysis('AreaOutputPort',true)
Properties
Usage
Syntax
Description
[returns
the area, centroid, and the bounding box of the blobs when the
area,centroid,bbox] = Hblob(bw)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.
[
computes the bw___,orientation]
= Hblob(bw)orientation of the blobs found in input binary image
bw when you set the OrientationOutputPort property to true.
[___,
computes the eccentricity]
= Hblob(bw)eccentricity of the blobs found in input binary image
bw when you set the EccentricityOutputPort property to true.
[___,
computes the EXTENT]
= Hblob(bw)EXTENT of the blobs found in input binary image
bw when the ExtentOutputPort property is set
to true.
Input Arguments
Output Arguments
Object Functions
To use an object function, specify the
System object™ as the first input argument. For
example, to release system resources of a System object named obj, use
this syntax:
release(obj)
Examples
Extended Capabilities
Version History
Introduced in R2012a