@@ -57,7 +57,7 @@ Mat knRnd(int size, int density)
57
57
*/
58
58
void dilate_rgr (InputArray src, InputArray kernel, Point anchor = Point (-1 , -1 ),
59
59
int iterations = 1,
60
- BorderTypes bdrType = BorderTypes::BORDER_CONSTANT, Scalar& bdrVal = Scalar::all(DBL_MAX ))
60
+ BorderTypes bdrType = BorderTypes::BORDER_CONSTANT, Scalar& bdrVal = morphologyDefaultBorderValue( ))
61
61
{
62
62
Mat expected, actual;
63
63
dilate (src, expected, kernel, anchor, iterations, bdrType, bdrVal);
@@ -94,7 +94,7 @@ TEST(ximgproc_StMorph_dilate, regression_it2) { dilate_rgr(im(CV_8UC3), kn5(), P
94
94
*/
95
95
void dilate_ftr (InputArray src, InputArray kernel, Point anchor = Point (-1 , -1 ),
96
96
int iterations = 1,
97
- BorderTypes bdrType = BorderTypes::BORDER_CONSTANT, Scalar& bdrVal = Scalar::all(DBL_MAX ))
97
+ BorderTypes bdrType = BorderTypes::BORDER_CONSTANT, Scalar& bdrVal = morphologyDefaultBorderValue( ))
98
98
{
99
99
Mat expected, actual;
100
100
stMorph::dilate (src, actual, kernel, anchor, iterations, bdrType, bdrVal);
@@ -112,7 +112,7 @@ TEST(ximgproc_StMorph_dilate, feature_32SC3) { dilate_ftr(im(CV_32SC3), kn5());
112
112
*/
113
113
void erode_rgr (InputArray src, InputArray kernel, Point anchor = Point (-1 , -1 ),
114
114
int iterations = 1,
115
- BorderTypes bdrType = BorderTypes::BORDER_CONSTANT, Scalar& bdrVal = Scalar::all(DBL_MAX ))
115
+ BorderTypes bdrType = BorderTypes::BORDER_CONSTANT, Scalar& bdrVal = morphologyDefaultBorderValue( ))
116
116
{
117
117
Mat expected, actual;
118
118
erode (src, expected, kernel, anchor, iterations, bdrType, bdrVal);
@@ -149,7 +149,7 @@ TEST(ximgproc_StMorph_erode, regression_it2) { erode_rgr(im(CV_8UC3), kn5(), Poi
149
149
*/
150
150
void erode_ftr (InputArray src, InputArray kernel, Point anchor = Point (-1 , -1 ),
151
151
int iterations = 1,
152
- BorderTypes bdrType = BorderTypes::BORDER_CONSTANT, Scalar& bdrVal = Scalar::all(DBL_MAX ))
152
+ BorderTypes bdrType = BorderTypes::BORDER_CONSTANT, Scalar& bdrVal = morphologyDefaultBorderValue( ))
153
153
{
154
154
Mat expected, actual;
155
155
stMorph::erode (src, actual, kernel, anchor, iterations, bdrType, bdrVal);
@@ -167,7 +167,7 @@ TEST(ximgproc_StMorph_erode, feature_32SC3) { erode_ftr(im(CV_32SC3), kn5()); }
167
167
*/
168
168
void ex_rgr (InputArray src, MorphTypes op, InputArray kernel, Point anchor = Point (-1 , -1 ),
169
169
int iterations = 1,
170
- BorderTypes bdrType = BorderTypes::BORDER_CONSTANT, Scalar& bdrVal = Scalar::all(DBL_MAX ))
170
+ BorderTypes bdrType = BorderTypes::BORDER_CONSTANT, Scalar& bdrVal = morphologyDefaultBorderValue( ))
171
171
{
172
172
Mat expected, actual;
173
173
morphologyEx (src, expected, op, kernel, anchor, iterations, bdrType, bdrVal);
0 commit comments