Skip to content

Commit 00e1bc4

Browse files
authored
Merge pull request opencv#17708 from shirriff:patch-1
Clarify component statistics documentation * Change ConnectedComponentsTypes documentation Change from "algorithm output formats" to "statistics" because it specifies types of statistics, not formats. * Documentation: clarify component statistics Explain that ConnectedComponentTypes selects a statistic.
1 parent 5a70451 commit 00e1bc4

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

modules/imgproc/include/opencv2/imgproc.hpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,7 @@ enum FloodFillFlags {
387387
//! @addtogroup imgproc_shape
388388
//! @{
389389

390-
//! connected components algorithm output formats
390+
//! connected components statistics
391391
enum ConnectedComponentsTypes {
392392
CC_STAT_LEFT = 0, //!< The leftmost (x) coordinate which is the inclusive start of the bounding
393393
//!< box in the horizontal direction.
@@ -3881,9 +3881,9 @@ parallel framework is enabled and if the rows of the image are at least twice th
38813881
38823882
@param image the 8-bit single-channel image to be labeled
38833883
@param labels destination labeled image
3884-
@param stats statistics output for each label, including the background label, see below for
3885-
available statistics. Statistics are accessed via stats(label, COLUMN) where COLUMN is one of
3886-
#ConnectedComponentsTypes. The data type is CV_32S.
3884+
@param stats statistics output for each label, including the background label.
3885+
Statistics are accessed via stats(label, COLUMN) where COLUMN is one of
3886+
#ConnectedComponentsTypes, selecting the statistic. The data type is CV_32S.
38873887
@param centroids centroid output for each label, including the background label. Centroids are
38883888
accessed via centroids(label, 0) for x and centroids(label, 1) for y. The data type CV_64F.
38893889
@param connectivity 8 or 4 for 8-way or 4-way connectivity respectively
@@ -3897,9 +3897,9 @@ CV_EXPORTS_AS(connectedComponentsWithStatsWithAlgorithm) int connectedComponents
38973897
/** @overload
38983898
@param image the 8-bit single-channel image to be labeled
38993899
@param labels destination labeled image
3900-
@param stats statistics output for each label, including the background label, see below for
3901-
available statistics. Statistics are accessed via stats(label, COLUMN) where COLUMN is one of
3902-
#ConnectedComponentsTypes. The data type is CV_32S.
3900+
@param stats statistics output for each label, including the background label.
3901+
Statistics are accessed via stats(label, COLUMN) where COLUMN is one of
3902+
#ConnectedComponentsTypes, selecting the statistic. The data type is CV_32S.
39033903
@param centroids centroid output for each label, including the background label. Centroids are
39043904
accessed via centroids(label, 0) for x and centroids(label, 1) for y. The data type CV_64F.
39053905
@param connectivity 8 or 4 for 8-way or 4-way connectivity respectively

0 commit comments

Comments
 (0)