diff --git a/modules/imgproc/src/contours.cpp b/modules/imgproc/src/contours.cpp index d88c6cbede..0577ca16c1 100644 --- a/modules/imgproc/src/contours.cpp +++ b/modules/imgproc/src/contours.cpp @@ -1884,7 +1884,7 @@ void cv::findContours_legacy( InputArray _image, OutputArrayOfArrays _contours, { CV_INSTRUMENT_REGION(); - findContours(_image, _contours, noArray(), mode, method, offset); + findContours_legacy(_image, _contours, noArray(), mode, method, offset); } /* End of file. */