CV-CUDA icon indicating copy to clipboard operation
CV-CUDA copied to clipboard

[FEATURE] please add CV: : connectedComponentsWithStats

Open libaineu2004 opened this issue 2 years ago • 3 comments

Is your feature request related to a problem? Please describe. Please, can you add CV: : connectedComponentsWithStats this operator?This is an operator from opencv for connected fields.

Describe the solution you'd like /** @overload @param image the 8-bit single-channel image to be labeled @param labels destination labeled image @param stats statistics output for each label, including the background label. Statistics are accessed via stats(label, COLUMN) where COLUMN is one of #ConnectedComponentsTypes, selecting the statistic. The data type is CV_32S. @param centroids centroid output for each label, including the background label. Centroids are accessed via centroids(label, 0) for x and centroids(label, 1) for y. The data type CV_64F. @param connectivity 8 or 4 for 8-way or 4-way connectivity respectively @param ltype output image label type. Currently CV_32S and CV_16U are supported. */ CV_EXPORTS_W int connectedComponentsWithStats(InputArray image, OutputArray labels, OutputArray stats, OutputArray centroids, int connectivity = 8, int ltype = CV_32S);

Describe alternatives you've considered null

Additional context null

libaineu2004 avatar Jun 09 '23 08:06 libaineu2004

Are there specific use cases you are looking to address in this feature request? Your proposal here is a blob detector plus computing image statistics on each blob as I understand it.

milesp-nvidia avatar Jun 12 '23 17:06 milesp-nvidia

Are there specific use cases you are looking to address in this feature request? Your proposal here is a blob detector plus computing image statistics on each blob as I understand it.

What I mean is to add an operator or function that computes a connected domain.

libaineu2004 avatar Jun 13 '23 07:06 libaineu2004

the same demand

zhang0557kui avatar Aug 18 '23 02:08 zhang0557kui