Skip to content

Commit ef1690e

Browse files
committed
Merge pull request opencv#17913 from asmorkalov:as/connected_components_ref
2 parents 0fa06b1 + abceef7 commit ef1690e

File tree

2 files changed

+16
-3
lines changed

2 files changed

+16
-3
lines changed

doc/opencv.bib

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1215,3 +1215,16 @@ @article{yang1996structure
12151215
year = {1996},
12161216
publisher = {Elsevier}
12171217
}
1218+
@Article{Wu2009,
1219+
author={Wu, Kesheng
1220+
and Otoo, Ekow
1221+
and Suzuki, Kenji},
1222+
title={Optimizing two-pass connected-component labeling algorithms},
1223+
journal={Pattern Analysis and Applications},
1224+
year={2009},
1225+
month={Jun},
1226+
day={01},
1227+
volume={12},
1228+
number={2},
1229+
pages={117-135},
1230+
}

modules/imgproc/include/opencv2/imgproc.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,7 @@ enum ConnectedComponentsTypes {
403403

404404
//! connected components algorithm
405405
enum ConnectedComponentsAlgorithmsTypes {
406-
CCL_WU = 0, //!< SAUF algorithm for 8-way connectivity, SAUF algorithm for 4-way connectivity
406+
CCL_WU = 0, //!< SAUF @cite Wu2009 algorithm for 8-way connectivity, SAUF algorithm for 4-way connectivity
407407
CCL_DEFAULT = -1, //!< BBDT algorithm for 8-way connectivity, SAUF algorithm for 4-way connectivity
408408
CCL_GRANA = 1 //!< BBDT algorithm for 8-way connectivity, SAUF algorithm for 4-way connectivity
409409
};
@@ -3842,7 +3842,7 @@ image with 4 or 8 way connectivity - returns N, the total number of labels [0, N
38423842
represents the background label. ltype specifies the output label image type, an important
38433843
consideration based on the total number of labels or alternatively the total number of pixels in
38443844
the source image. ccltype specifies the connected components labeling algorithm to use, currently
3845-
Grana (BBDT) and Wu's (SAUF) algorithms are supported, see the #ConnectedComponentsAlgorithmsTypes
3845+
Grana (BBDT) and Wu's (SAUF) @cite Wu2009 algorithms are supported, see the #ConnectedComponentsAlgorithmsTypes
38463846
for details. Note that SAUF algorithm forces a row major ordering of labels while BBDT does not.
38473847
This function uses parallel version of both Grana and Wu's algorithms if at least one allowed
38483848
parallel framework is enabled and if the rows of the image are at least twice the number returned by #getNumberOfCPUs.
@@ -3874,7 +3874,7 @@ image with 4 or 8 way connectivity - returns N, the total number of labels [0, N
38743874
represents the background label. ltype specifies the output label image type, an important
38753875
consideration based on the total number of labels or alternatively the total number of pixels in
38763876
the source image. ccltype specifies the connected components labeling algorithm to use, currently
3877-
Grana's (BBDT) and Wu's (SAUF) algorithms are supported, see the #ConnectedComponentsAlgorithmsTypes
3877+
Grana's (BBDT) and Wu's (SAUF) @cite Wu2009 algorithms are supported, see the #ConnectedComponentsAlgorithmsTypes
38783878
for details. Note that SAUF algorithm forces a row major ordering of labels while BBDT does not.
38793879
This function uses parallel version of both Grana and Wu's algorithms (statistics included) if at least one allowed
38803880
parallel framework is enabled and if the rows of the image are at least twice the number returned by #getNumberOfCPUs.

0 commit comments

Comments
 (0)