|
1 |
| -/* |
2 |
| - * By downloading, copying, installing or using the software you agree to this license. |
3 |
| - * If you do not agree to this license, do not download, install, |
4 |
| - * copy or use the software. |
5 |
| - * |
6 |
| - * |
7 |
| - * License Agreement |
8 |
| - * For Open Source Computer Vision Library |
9 |
| - * (3 - clause BSD License) |
10 |
| - * |
11 |
| - * Redistribution and use in source and binary forms, with or without modification, |
12 |
| - * are permitted provided that the following conditions are met : |
13 |
| - * |
14 |
| - * * Redistributions of source code must retain the above copyright notice, |
15 |
| - * this list of conditions and the following disclaimer. |
16 |
| - * |
17 |
| - * * Redistributions in binary form must reproduce the above copyright notice, |
18 |
| - * this list of conditions and the following disclaimer in the documentation |
19 |
| - * and / or other materials provided with the distribution. |
20 |
| - * |
21 |
| - * * Neither the names of the copyright holders nor the names of the contributors |
22 |
| - * may be used to endorse or promote products derived from this software |
23 |
| - * without specific prior written permission. |
24 |
| - * |
25 |
| - * This software is provided by the copyright holders and contributors "as is" and |
26 |
| - * any express or implied warranties, including, but not limited to, the implied |
27 |
| - * warranties of merchantability and fitness for a particular purpose are disclaimed. |
28 |
| - * In no event shall copyright holders or contributors be liable for any direct, |
29 |
| - * indirect, incidental, special, exemplary, or consequential damages |
30 |
| - * (including, but not limited to, procurement of substitute goods or services; |
31 |
| - * loss of use, data, or profits; or business interruption) however caused |
32 |
| - * and on any theory of liability, whether in contract, strict liability, |
33 |
| - * or tort(including negligence or otherwise) arising in any way out of |
34 |
| - * the use of this software, even if advised of the possibility of such damage. |
35 |
| - */ |
| 1 | +// This file is part of OpenCV project. |
| 2 | +// It is subject to the license terms in the LICENSE file found in the top-level directory |
| 3 | +// of this distribution and at http://opencv.org/license.html. |
36 | 4 |
|
37 | 5 | #ifndef __OPENCV_XIMGPROC_HPP__
|
38 | 6 | #define __OPENCV_XIMGPROC_HPP__
|
|
68 | 36 | /**
|
69 | 37 | @defgroup ximgproc Extended Image Processing
|
70 | 38 | @{
|
| 39 | + @defgroup ximgproc_binarization Binarization |
| 40 | +
|
71 | 41 | @defgroup ximgproc_edge Structured forests for fast edge detection
|
72 | 42 |
|
73 | 43 | This module contains implementations of modern structured edge detection algorithms,
|
@@ -124,7 +94,7 @@ namespace cv
|
124 | 94 | namespace ximgproc
|
125 | 95 | {
|
126 | 96 |
|
127 |
| -//! @addtogroup ximgproc |
| 97 | +//! @addtogroup ximgproc_binarization |
128 | 98 | //! @{
|
129 | 99 |
|
130 | 100 | enum ThinningTypes{
|
@@ -179,15 +149,20 @@ CV_EXPORTS_W void niBlackThreshold( InputArray _src, OutputArray _dst,
|
179 | 149 | int blockSize, double k, int binarizationMethod = BINARIZATION_NIBLACK,
|
180 | 150 | double r = 128 );
|
181 | 151 |
|
182 |
| -/** @brief Applies a binary blob thinning operation, to achieve a skeletization of the input image. |
| 152 | +/** @brief Performs binary image thinning to obtain a skeletonized representation of the input image. |
183 | 153 |
|
184 |
| -The function transforms a binary blob image into a skeletized form using the technique of Zhang-Suen. |
| 154 | +This function applies a thinning algorithm, reducing the binary blobs in the input image to a skeletal form. |
| 155 | +By default, it uses the Zhang-Suen technique, which iteratively removes pixels from the boundaries of the blobs |
| 156 | +while preserving the overall structure and connectivity of the objects. |
| 157 | +
|
| 158 | +@param src Source image: an 8-bit, single-channel binary image where the blobs are represented by pixels with a value of 255 (white), |
| 159 | +and the background is 0 (black). |
| 160 | +@param dst Destination image of the same size and type as src, where the result of the thinning operation will be stored. |
| 161 | +This operation can be performed in-place, meaning `src` and `dst` can be the same. |
| 162 | +@param thinningType The thinning algorithm to apply. By default, the Zhang-Suen algorithm is used. See cv::ximgproc::ThinningTypes for other options. |
| 163 | +*/ |
| 164 | +CV_EXPORTS_W void thinning(InputArray src, OutputArray dst, int thinningType = THINNING_ZHANGSUEN); |
185 | 165 |
|
186 |
| -@param src Source 8-bit single-channel image, containing binary blobs, with blobs having 255 pixel values. |
187 |
| -@param dst Destination image of the same size and the same type as src. The function can work in-place. |
188 |
| -@param thinningType Value that defines which thinning algorithm should be used. See cv::ximgproc::ThinningTypes |
189 |
| - */ |
190 |
| -CV_EXPORTS_W void thinning( InputArray src, OutputArray dst, int thinningType = THINNING_ZHANGSUEN); |
191 | 166 |
|
192 | 167 | /** @brief Performs anisotropic diffusion on an image.
|
193 | 168 |
|
|
0 commit comments