ImageMagick Now Has Fourier Transforms
Posted: 2009-07-19T16:58:36-07:00
Thanks to the heroic efforts of Magick, IM version 6.5.4-3 now has Fourier Transforms. See the options -fft and -ift.
My thanks to Magick for his time, energy and tenacity to implement the demo that Sean Burke and I originally developed. This was no easy task contrary to my naive belief.
This initial implementation has one notable feature that should be considered by any user. The resulting FFT image(s) will be square with even dimensions. This means that if the input image does not conform to this requirement, it will be automatically padded to conform. Thus, after doing a -fft followed by any processing and then a -ift, the resulting image will contain the pad. The padding will have to be cropped manually as a post processing step.
I hope in the future that the square limitation will be removed.
Over the next few days, I will be writing up some detailed documentation with examples of what one can do with the Fourier transform. My old notes and examples at http://www.fmwconcepts.com/misc_tests/F ... index.html are out-dated. They demonstrate much of what can be done, but the syntax for creating the transform images and structure of the transform images are now much different. I hope to contribute this documentation to Anthony's excellent pages at http://www.imagemagick.org/Usage/ and will be working with Anthony to fold them in.
The FFTW delegate library is needed to use the IM FFT and IFT options. see http://www.fftw.org/
Fred
My thanks to Magick for his time, energy and tenacity to implement the demo that Sean Burke and I originally developed. This was no easy task contrary to my naive belief.
This initial implementation has one notable feature that should be considered by any user. The resulting FFT image(s) will be square with even dimensions. This means that if the input image does not conform to this requirement, it will be automatically padded to conform. Thus, after doing a -fft followed by any processing and then a -ift, the resulting image will contain the pad. The padding will have to be cropped manually as a post processing step.
I hope in the future that the square limitation will be removed.
Over the next few days, I will be writing up some detailed documentation with examples of what one can do with the Fourier transform. My old notes and examples at http://www.fmwconcepts.com/misc_tests/F ... index.html are out-dated. They demonstrate much of what can be done, but the syntax for creating the transform images and structure of the transform images are now much different. I hope to contribute this documentation to Anthony's excellent pages at http://www.imagemagick.org/Usage/ and will be working with Anthony to fold them in.
The FFTW delegate library is needed to use the IM FFT and IFT options. see http://www.fftw.org/
Fred