mirror of
https://github.com/opencv/opencv.git
synced 2025-08-06 14:36:36 +08:00
remove floating point literal
This commit is contained in:
parent
5121a1bf0d
commit
5528e70f3c
@ -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…
Reference in New Issue
Block a user