public static ConnectedComponentsWithStats ( InputArray image, OutputArray labels, OutputArray stats, OutputArray centroids, PixelConnectivity connectivity = PixelConnectivity.Connectivity8 ) : int | ||
image | InputArray | the image to be labeled |
labels | OutputArray | destination labeled image |
stats | OutputArray | statistics output for each label, including the background label, /// see below for available statistics. Statistics are accessed via stats(label, COLUMN) /// where COLUMN is one of cv::ConnectedComponentsTypes |
centroids | OutputArray | floating point centroid (x,y) output for each label, /// including the background label |
connectivity | PixelConnectivity | 8 or 4 for 8-way or 4-way connectivity respectively |
return | int |
Cv2::ConnectedComponentsWithStats ( InputArray image, OutputArray labels, OutputArray stats, OutputArray centroids, PixelConnectivity connectivity, MatType ltype ) : int |