MATLAB File Help: cv.connectedComponents Index
cv.connectedComponents

Computes the connected components labeled image of boolean image

[labels,N] = cv.connectedComponents(image)
[labels,N,stats,centroids] = cv.connectedComponents(image)
[...] = cv.connectedComponents(..., 'OptionName', optionValue, ...)

Input

Output

Options

The last two optional output arguments are only computed if requested.

See also