Skip to content

Commit 2a5e12c

Browse files
committed
Merge pull request opencv#8789 from vpisarev:parallel_ccomp
2 parents ea8be57 + 6473018 commit 2a5e12c

File tree

5 files changed

+3372
-1080
lines changed

5 files changed

+3372
-1080
lines changed

modules/imgproc/include/opencv2/imgproc.hpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3703,8 +3703,10 @@ image with 4 or 8 way connectivity - returns N, the total number of labels [0, N
37033703
represents the background label. ltype specifies the output label image type, an important
37043704
consideration based on the total number of labels or alternatively the total number of pixels in
37053705
the source image. ccltype specifies the connected components labeling algorithm to use, currently
3706-
Grana's (BBDT) and Wu's (SAUF) algorithms are supported, see the cv::ConnectedComponentsAlgorithmsTypes
3706+
Grana (BBDT) and Wu's (SAUF) algorithms are supported, see the cv::ConnectedComponentsAlgorithmsTypes
37073707
for details. Note that SAUF algorithm forces a row major ordering of labels while BBDT does not.
3708+
This function uses parallel version of both Grana and Wu's algorithms if at least one allowed
3709+
parallel framework is enabled and if the rows of the image are at least twice the number returned by getNumberOfCPUs.
37083710
37093711
@param image the 8-bit single-channel image to be labeled
37103712
@param labels destination labeled image
@@ -3735,7 +3737,8 @@ consideration based on the total number of labels or alternatively the total num
37353737
the source image. ccltype specifies the connected components labeling algorithm to use, currently
37363738
Grana's (BBDT) and Wu's (SAUF) algorithms are supported, see the cv::ConnectedComponentsAlgorithmsTypes
37373739
for details. Note that SAUF algorithm forces a row major ordering of labels while BBDT does not.
3738-
3740+
This function uses parallel version of both Grana and Wu's algorithms (statistics included) if at least one allowed
3741+
parallel framework is enabled and if the rows of the image are at least twice the number returned by getNumberOfCPUs.
37393742
37403743
@param image the 8-bit single-channel image to be labeled
37413744
@param labels destination labeled image

0 commit comments

Comments
 (0)