|
|
|
@ -403,7 +403,7 @@ enum ConnectedComponentsTypes { |
|
|
|
|
|
|
|
|
|
//! connected components algorithm
|
|
|
|
|
enum ConnectedComponentsAlgorithmsTypes { |
|
|
|
|
CCL_WU = 0, //!< SAUF algorithm for 8-way connectivity, SAUF algorithm for 4-way connectivity
|
|
|
|
|
CCL_WU = 0, //!< SAUF @cite Wu2009 algorithm for 8-way connectivity, SAUF algorithm for 4-way connectivity
|
|
|
|
|
CCL_DEFAULT = -1, //!< BBDT algorithm for 8-way connectivity, SAUF algorithm for 4-way connectivity
|
|
|
|
|
CCL_GRANA = 1 //!< BBDT algorithm for 8-way connectivity, SAUF algorithm for 4-way connectivity
|
|
|
|
|
}; |
|
|
|
@ -3842,7 +3842,7 @@ image with 4 or 8 way connectivity - returns N, the total number of labels [0, N |
|
|
|
|
represents the background label. ltype specifies the output label image type, an important |
|
|
|
|
consideration based on the total number of labels or alternatively the total number of pixels in |
|
|
|
|
the source image. ccltype specifies the connected components labeling algorithm to use, currently |
|
|
|
|
Grana (BBDT) and Wu's (SAUF) algorithms are supported, see the #ConnectedComponentsAlgorithmsTypes |
|
|
|
|
Grana (BBDT) and Wu's (SAUF) @cite Wu2009 algorithms are supported, see the #ConnectedComponentsAlgorithmsTypes |
|
|
|
|
for details. Note that SAUF algorithm forces a row major ordering of labels while BBDT does not. |
|
|
|
|
This function uses parallel version of both Grana and Wu's algorithms if at least one allowed |
|
|
|
|
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 |
|
|
|
|
represents the background label. ltype specifies the output label image type, an important |
|
|
|
|
consideration based on the total number of labels or alternatively the total number of pixels in |
|
|
|
|
the source image. ccltype specifies the connected components labeling algorithm to use, currently |
|
|
|
|
Grana's (BBDT) and Wu's (SAUF) algorithms are supported, see the #ConnectedComponentsAlgorithmsTypes |
|
|
|
|
Grana's (BBDT) and Wu's (SAUF) @cite Wu2009 algorithms are supported, see the #ConnectedComponentsAlgorithmsTypes |
|
|
|
|
for details. Note that SAUF algorithm forces a row major ordering of labels while BBDT does not. |
|
|
|
|
This function uses parallel version of both Grana and Wu's algorithms (statistics included) if at least one allowed |
|
|
|
|
parallel framework is enabled and if the rows of the image are at least twice the number returned by #getNumberOfCPUs. |
|
|
|
|