diff --git a/modules/imgproc/src/thresh.cpp b/modules/imgproc/src/thresh.cpp index 92d630348a..13f0fa284b 100644 --- a/modules/imgproc/src/thresh.cpp +++ b/modules/imgproc/src/thresh.cpp @@ -1210,7 +1210,7 @@ public: } else if( srcStripe.depth() == CV_64F ) { - thresh_64f(srcStripe, dstStripe, (double)thresh, (double)maxval, thresholdType); + thresh_64f(srcStripe, dstStripe, thresh, maxval, thresholdType); } }