aboutsummaryrefslogtreecommitdiff
path: root/math/saga
diff options
context:
space:
mode:
authorBeech Rintoul <beech@FreeBSD.org>2012-06-09 19:07:06 +0000
committerBeech Rintoul <beech@FreeBSD.org>2012-06-09 19:07:06 +0000
commitaf019be81f36b82edab93153cdf6b767f7301e9d (patch)
treef4933b72d37c200d95ffec6dc02467f9214d77ab /math/saga
parentcb11d8a1f2c62f1a898ec7911d898229a50fe7c2 (diff)
downloadports-af019be81f36b82edab93153cdf6b767f7301e9d.tar.gz
ports-af019be81f36b82edab93153cdf6b767f7301e9d.zip
Notes
Diffstat (limited to 'math/saga')
-rw-r--r--math/saga/files/patch-src-modules_images-modules_vigra-vigra-vigra_fft.cpp29
1 files changed, 29 insertions, 0 deletions
diff --git a/math/saga/files/patch-src-modules_images-modules_vigra-vigra-vigra_fft.cpp b/math/saga/files/patch-src-modules_images-modules_vigra-vigra-vigra_fft.cpp
new file mode 100644
index 000000000000..75776f21dcb1
--- /dev/null
+++ b/math/saga/files/patch-src-modules_images-modules_vigra-vigra-vigra_fft.cpp
@@ -0,0 +1,29 @@
+--- src/modules_images/modules_vigra/vigra/vigra_fft.cpp.orig 2011-11-24 15:24:43.000000000 +0100
++++ src/modules_images/modules_vigra/vigra/vigra_fft.cpp 2012-01-18 23:21:38.000000000 +0100
+@@ -89,7 +89,7 @@
+ {
+ for(int x=0; x<Real.Get_NX(); x++)
+ {
+- Image(x, y) = FFTWComplex(Real.asDouble(x, y), Imag.asDouble(x, y));
++ Image(x, y) = FFTWComplex<double>(Real.asDouble(x, y), Imag.asDouble(x, y));
+ }
+ }
+
+@@ -296,7 +296,7 @@
+ fourierTransformInverse(srcImageRange(tmp) , destImage(Output));
+ }
+
+- transformImage(srcImageRange(Output), destImage(Output), std::bind1st(std::multiplies<FFTWComplex>(), 1.0 / Get_NX() / Get_NY()));
++ transformImage(srcImageRange(Output), destImage(Output), std::bind1st(std::multiplies<FFTWComplex<double> >(), 1.0 / Get_NX() / Get_NY()));
+
+ //-----------------------------------------------------
+ pReal = Parameters("REAL_OUT")->asGrid();
+@@ -519,7 +519,7 @@
+
+ vigra::applyFourierFilter(srcImageRange(Input), srcImage(Filter_), destImage(Output));
+
+- transformImage(srcImageRange(Output), destImage(Output), std::bind1st(std::multiplies<FFTWComplex>(), 1.0 / Get_NX() / Get_NY()));
++ transformImage(srcImageRange(Output), destImage(Output), std::bind1st(std::multiplies<FFTWComplex<double> >(), 1.0 / Get_NX() / Get_NY()));
+
+ //-----------------------------------------------------
+ Copy_ComplexGrid_VIGRA_to_SAGA(*pReal, *pImag, Output, false);