Skip to content

Commit b1473fa

Browse files
committed
iterations を erode, dilate から削除
1 parent 3b59fc1 commit b1473fa

File tree

2 files changed

+9
-19
lines changed

2 files changed

+9
-19
lines changed

modules/ximgproc/include/opencv2/ximgproc/sparse_table_morphology.hpp

Lines changed: 7 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -24,16 +24,13 @@ namespace stMorph {
2424
* structuring element is used. Kernel can be created using #getStructuringElement.
2525
* @param anchor position of the anchor within the element; default value (-1, -1) means that the
2626
* anchor is at the element center.
27-
* @param iterations number of times erosion is applied.
2827
* @param borderType pixel extrapolation method, see #BorderTypes. #BORDER_WRAP is not supported.
2928
* @param borderValue border value in case of a constant border
3029
*
3130
* @see cv::erode
3231
*/
33-
CV_EXPORTS_W void erode( InputArray src, OutputArray dst, InputArray kernel,
34-
Point anchor = Point(-1,-1), int iterations = 1,
35-
int borderType = BORDER_CONSTANT,
36-
const Scalar& borderValue = morphologyDefaultBorderValue() );
32+
CV_EXPORTS_W void erode( InputArray src, OutputArray dst, InputArray kernel, Point anchor = Point(-1,-1),
33+
int borderType = BORDER_CONSTANT, const Scalar& borderValue = morphologyDefaultBorderValue() );
3734

3835
/**
3936
* @brief Faster implementation of cv::dilate with sparse table concept.
@@ -45,16 +42,13 @@ CV_EXPORTS_W void erode( InputArray src, OutputArray dst, InputArray kernel,
4542
* structuring element is used. Kernel can be created using #getStructuringElement
4643
* @param anchor position of the anchor within the element; default value (-1, -1) means that the
4744
* anchor is at the element center.
48-
* @param iterations number of times dilation is applied.
4945
* @param borderType pixel extrapolation method, see #BorderTypes. #BORDER_WRAP is not suported.
5046
* @param borderValue border value in case of a constant border
5147
*
5248
* @see cv::dilate
5349
*/
54-
CV_EXPORTS_W void dilate( InputArray src, OutputArray dst, InputArray kernel,
55-
Point anchor = Point(-1,-1), int iterations = 1,
56-
int borderType = BORDER_CONSTANT,
57-
const Scalar& borderValue = morphologyDefaultBorderValue() );
50+
CV_EXPORTS_W void dilate( InputArray src, OutputArray dst, InputArray kernel, Point anchor = Point(-1, -1),
51+
int borderType = BORDER_CONSTANT, const Scalar& borderValue = morphologyDefaultBorderValue() );
5852

5953
/**
6054
* @brief Faster implementation of cv::morphologyEx with sparse table concept.
@@ -76,11 +70,9 @@ CV_EXPORTS_W void dilate( InputArray src, OutputArray dst, InputArray kernel,
7670
*
7771
* @see cv::morphologyEx
7872
*/
79-
CV_EXPORTS_W void morphologyEx( InputArray src, OutputArray dst,
80-
int op, InputArray kernel,
81-
Point anchor = Point(-1,-1), int iterations = 1,
82-
int borderType = BORDER_CONSTANT,
83-
const Scalar& borderValue = morphologyDefaultBorderValue() );
73+
CV_EXPORTS_W void morphologyEx( InputArray src, OutputArray dst, int op, InputArray kernel, Point anchor = Point(-1,-1),
74+
int iterations = 1,
75+
int borderType = BORDER_CONSTANT, const Scalar& borderValue = morphologyDefaultBorderValue() );
8476

8577
//! @}
8678

modules/ximgproc/src/sparse_table_morphology.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -272,14 +272,12 @@ static void makeMaxStMat(InputArray src, OutputArray dst, int rowStep, int colSt
272272
}
273273
}
274274

275-
void dilate(InputArray src, OutputArray dst, InputArray kernel,
276-
Point anchor, int iterations,
275+
void dilate(InputArray src, OutputArray dst, InputArray kernel, Point anchor,
277276
int borderType, const Scalar& borderValue)
278277
{
279278
}
280279

281-
void erode(InputArray _src, OutputArray _dst, InputArray _kernel,
282-
Point anchor, int iterations,
280+
void erode(InputArray _src, OutputArray _dst, InputArray _kernel, Point anchor,
283281
int borderType, const Scalar& borderValue)
284282
{
285283
//---------------------------

0 commit comments

Comments
 (0)