From 5528e70f3c8830adb7d08981f9b03a717bfa202e Mon Sep 17 00:00:00 2001 From: Tsukasa Sugiura Date: Mon, 8 Apr 2024 14:52:53 +0900 Subject: [PATCH] remove floating point literal --- modules/imgproc/src/phasecorr.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/imgproc/src/phasecorr.cpp b/modules/imgproc/src/phasecorr.cpp index 9db436673c..dadc3a3da7 100644 --- a/modules/imgproc/src/phasecorr.cpp +++ b/modules/imgproc/src/phasecorr.cpp @@ -613,7 +613,7 @@ void cv::createHanningWindow(OutputArray _dst, cv::Size winSize, int type) AutoBuffer _wc(cols); double* const wc = _wc.data(); - double coeff0 = 2.0 * CV_PI / (double)(cols - 1), coeff1 = 2.0f * CV_PI / (double)(rows - 1); + double coeff0 = 2.0 * CV_PI / (double)(cols - 1), coeff1 = 2.0 * CV_PI / (double)(rows - 1); for(int j = 0; j < cols; j++) wc[j] = 0.5 * (1.0 - cos(coeff0 * j));