Skip to content

Update run_length_morphology.cpp #3059

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 8, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions modules/ximgproc/src/run_length_morphology.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ static void _threshold(cv::Mat& img, rlVec& res, double threshold, int type)
_thresholdLine<double>((double*) img.ptr(i), img.cols, i, threshold, type, res);
break;
default:
CV_Error( CV_StsUnsupportedFormat, "unsupported image type" );
CV_Error( Error::StsUnsupportedFormat, "unsupported image type" );
}
}

Expand Down Expand Up @@ -207,7 +207,7 @@ void paint_impl(cv::Mat& img, rlType* pRuns, int nSize, T value)
paint_impl<double>(_image, pRuns, N - 1, dValue);
break;
default:
CV_Error(CV_StsUnsupportedFormat, "unsupported image type");
CV_Error(Error::StsUnsupportedFormat, "unsupported image type");
break;
}
}
Expand Down Expand Up @@ -801,7 +801,7 @@ CV_EXPORTS void morphologyEx(InputArray rlSrc, OutputArray rlDest, int op, Input
break;
default:
case MORPH_HITMISS:
CV_Error(CV_StsBadArg, "unknown or unsupported morphological operation");
CV_Error(Error::StsBadArg, "unknown or unsupported morphological operation");
}
convertToOutputArray(runsDestination, sizeSource, rlDest);
}
Expand Down