]> git.sesse.net Git - movit/blobdiff - deconvolution_sharpen_effect.cpp
Make a pow() call unambiguous.
[movit] / deconvolution_sharpen_effect.cpp
index 0a13dd642f3d9a3cb5d00ac857f2763cf4904ee5..c663d653360350c624bc769047269d69b89827c2 100644 (file)
@@ -301,7 +301,7 @@ void DeconvolutionSharpenEffect::update_deconvolution_kernel()
        MatrixXf r_uu(8 * R + 1, 8 * R + 1);
        for (int y = -4 * R; y <= 4 * R; ++y) { 
                for (int x = -4 * R; x <= 4 * R; ++x) {
-                       r_uu(x + 4 * R, y + 4 * R) = pow(correlation, hypot(x, y));
+                       r_uu(x + 4 * R, y + 4 * R) = pow(double(correlation), hypot(x, y));
                }
        }