Skip to content

Commit 5e5609c

Browse files
committed
Merge pull request #3059 from sturkmen72:patch-2
2 parents 31f96a1 + a36a67d commit 5e5609c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

modules/ximgproc/src/run_length_morphology.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ static void _threshold(cv::Mat& img, rlVec& res, double threshold, int type)
120120
_thresholdLine<double>((double*) img.ptr(i), img.cols, i, threshold, type, res);
121121
break;
122122
default:
123-
CV_Error( CV_StsUnsupportedFormat, "unsupported image type" );
123+
CV_Error( Error::StsUnsupportedFormat, "unsupported image type" );
124124
}
125125
}
126126

@@ -207,7 +207,7 @@ void paint_impl(cv::Mat& img, rlType* pRuns, int nSize, T value)
207207
paint_impl<double>(_image, pRuns, N - 1, dValue);
208208
break;
209209
default:
210-
CV_Error(CV_StsUnsupportedFormat, "unsupported image type");
210+
CV_Error(Error::StsUnsupportedFormat, "unsupported image type");
211211
break;
212212
}
213213
}
@@ -801,7 +801,7 @@ CV_EXPORTS void morphologyEx(InputArray rlSrc, OutputArray rlDest, int op, Input
801801
break;
802802
default:
803803
case MORPH_HITMISS:
804-
CV_Error(CV_StsBadArg, "unknown or unsupported morphological operation");
804+
CV_Error(Error::StsBadArg, "unknown or unsupported morphological operation");
805805
}
806806
convertToOutputArray(runsDestination, sizeSource, rlDest);
807807
}

0 commit comments

Comments
 (0)