Click or drag to resize

CvInvokeConnectedComponents Method

http://www.emgu.com
Computes the connected components labeled image of boolean image

Namespace:  Emgu.CV
Assembly:  Emgu.CV.World (in Emgu.CV.World.dll) Version: 4.1.1.3497 (4.1.1.3497)
Syntax
public static int ConnectedComponents(
	IInputArray image,
	IOutputArray labels,
	LineType connectivity = LineType.EightConnected,
	DepthType labelType = DepthType.Cv32S
)

Parameters

image
Type: Emgu.CVIInputArray
The boolean image
labels
Type: Emgu.CVIOutputArray
The connected components labeled image of boolean image
connectivity (Optional)
Type: Emgu.CV.CvEnumLineType
4 or 8 way connectivity
labelType (Optional)
Type: Emgu.CV.CvEnumDepthType
Specifies the output label image type, an important consideration based on the total number of labels or alternatively the total number of pixels in the source image

Return Value

Type: Int32
N, the total number of labels [0, N-1] where 0 represents the background label.
See Also