Blob Analysis
R2026bStatistics for labeled regions
Libraries:
Computer Vision Toolbox /
Statistics
Description
The Blob Analysis block calculates statistics for labeled regions in a binary image. The block returns quantities such as the centroid, bounding box, label matrix, and blob count. The Blob Analysis block supports input and output variable-size signals. You can also use the Selector (Simulink) block from Simulink®, to select certain blobs based on their statistics.
For information on pixel and spatial coordinate system definitions, see Image Coordinate Systems and Coordinate Systems.
Examples
Ports
Input
Output
Parameters
Block Characteristics
Data Types | |
Multidimensional Signals |
|
Variable-Size Signals |
|
a Generated code will be restricted to MATLAB host computers when you set the FFT implementation parameter to FFTW, or when the transform length is not a power of two. b This data type is supported at the output port(s). c Fixed-point data types are not supported at the Major Axis, Minor Axis, Orientation, and Eccentricity output ports. | |
Programmatic Use: Add Block
To add the block programmatically, use the add_block function with one of these library block paths as the source.
"visionstatistics/Blob Analysis"
Example: add_block("visionstatistics/Blob Analysis","myModel/myBlock",MakeNameUnique="on")
Extended Capabilities
Version History
Introduced before R2006a



