Label
R2026bLabel connected components in binary image
Libraries:
Computer Vision Toolbox /
Morphological Operations
Description
The Label block finds and labels the connected components or objects in a 2-D binary image. The block ignores the background pixels in the input image and searches for connected components within remaining pixels. The block then labels all the pixels of each connected component with a unique number and computes the number of labeled objects.
Examples
Ports
Input
Output
Parameters
Block Characteristics
Data Types |
|
Multidimensional Signals |
|
Variable-Size Signals |
|
Programmatic Use: Add Block
To add the block programmatically, use the add_block function with one of these library block paths as the source.
"visionmorphops/Label"
Example: add_block("visionmorphops/Label","myModel/myBlock",MakeNameUnique="on")
Extended Capabilities
Version History
Introduced before R2006a
See Also
Blocks
- Dilation | Erosion | Opening | Closing | Blob Analysis
Functions
bwconncomp|bwselect|regionprops|bwlabel|bwlabeln



