Statistics for labeled regions
Computer Vision Toolbox / Statistics
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 variablesize signals. You can also use the Selector block from Simulink^{®}, to select certain blobs based on their statistics.
For information on pixel and spatial coordinate system definitions, see Image Coordinate Systems (Image Processing Toolbox) and Coordinate Systems.
Data Types 

Multidimensional Signals 

VariableSize 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]} Fixedpoint data types are not supported at the Major Axis, Minor Axis, Orientation, and Eccentricity output ports. 