Merge pull request #25368 from UnaNancyOwen:fix_double

Remove unnecessary floating point literal
pull/25372/head
Alexander Smorkalov 1 year ago committed by GitHub
commit e80500828c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      modules/imgproc/src/phasecorr.cpp

@ -613,7 +613,7 @@ void cv::createHanningWindow(OutputArray _dst, cv::Size winSize, int type)
AutoBuffer<double> _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));

Loading…
Cancel
Save