diff --git a/modules/imgproc/src/thresh.cpp b/modules/imgproc/src/thresh.cpp index 2122a0f666..5a02452f1f 100644 --- a/modules/imgproc/src/thresh.cpp +++ b/modules/imgproc/src/thresh.cpp @@ -691,6 +691,7 @@ getThreshVal_Otsu_8u( const Mat& _src ) CV_SUPPRESS_DEPRECATED_END if (ok >= 0) return thresh; + setIppErrorStatus(); #endif const int N = 256;