]> git.sesse.net Git - movit/commitdiff
Make a pow() call unambiguous.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Mon, 27 Jan 2014 22:04:44 +0000 (23:04 +0100)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Mon, 27 Jan 2014 22:04:44 +0000 (23:04 +0100)
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));
                }
        }