[Insight-users] Inaccuracy in fftw calculation

Cory Quammen cquammen at cs.unc.edu
Wed Oct 5 10:53:13 EDT 2011


Please post your code that is exhibiting the problem and state what
version of ITK you are using.

Thanks,
Cory

2011/10/5 Antonio Gómez Barquero <agb1 at alu.upct.es>:
> Inaccuracy in fftw calculation
>
>
>
> I am calculating the fft of an image which pixels are double with the FFTW
> library, for that purpose i am using the library fftw(http://www.fftw.org/)
> library in Visual Studio 2008 and using ITK.
>
>
>
> When I calculate the fft from a double pointer, with the method
> ‘fftw_plan_dft_c2r_2d’, it makes the calculation but introducing inaccuracy,
> it is around +- 0.5…
>
>
>
> I don’t really know what is wrong, maybe the spacing between pixels? The
> type of the data used? Did someone have this problem or something similar
> before?
>
>
>
> Many thanks in advanced.
>
>
>
> Antonio Gómez Barquero
>
>
>
> Ingeniero de Telecomunicaciones -Becario Investigador asociado a Actividades
> de I+D+I
>
> GTTS ( Grupo de Tratamiento y Teoría de la Señal)[ http://gtts.upct.es/]
>
> UPCT (Universidad Politécnica de Cartagena)[ http://www.upct.es/]
>
>
>
> _____________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Kitware offers ITK Training Courses, for more information visit:
> http://www.kitware.com/products/protraining.html
>
> Please keep messages on-topic and check the ITK FAQ at:
> http://www.itk.org/Wiki/ITK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.itk.org/mailman/listinfo/insight-users
>
>



-- 
Cory Quammen
Research Associate
Department of Computer Science
The University of North Carolina at Chapel Hill


More information about the Insight-users mailing list