Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
First you need to install the FFTW delegate library that is the core of the FFT code and then recompile IM. This is free open source code. The nominal binaries only come with certain delegate libraries preinstalled and FFTW is not one of them. Mostly the ones installed are for the most common image formats, such as gif, jpg, tiff, png, etc. I am not an expert on installation and know nothing about Windows, but you may have to install from IM source rather than binary. But give it a try by installing the delegate below and then reinstalling IM if the FFT does not work. For Windows source installation, see http://www.imagemagick.org/download/www ... ml#windows
This will produce two output images, fftimage-0.png and fftimage-1.png. You should use PNG or some 24-bit color image format for the output and should be on Q16 IM for highest quality. The first image will be the magnitude image and the second will be the phase image.
I've downloaded both FFTW and source for IM, but how do i integrate the two ?
I've managed to compile IM, but i don't know where to add the FFTW files ...
I am not a Windows user, so all I can tell you is how I did it on my Mac. First install FFTW as per its instructions. It should go automatically where ever your default install goes (/usr/local/bin at least on my Mac). Likewise, install any other delegate libraries, such as jpg, png, tif, etc. Then install IM from source manually. It should then install to the same default location and should find FFTW as they both are installed now in the same default directory. IM needs to be installed (or reinstalled) after any delegate is installed. Once that is done, you can check if IM recognizes FFTW by typing
convert -list configure
and look at the line starting with DELEGATES. Mine looks like:
Another windows user here, dying to try Fred's 'notch' script on various problematic images.
Being forced to compile from source is disconcerting to me as I have no previous experience with compilers.
Any chance there's a special build available with FFT support built-in?
markanini wrote:Another windows user here, dying to try Fred's 'notch' script on various problematic images.
Being forced to compile from source is disconcerting to me as I have no previous experience with compilers.
Any chance there's a special build available with FFT support built-in?
Please note my scripts are unix bash scripts and do not run directly under Windows. You would need to install Cygwin as well.
I needed to run FFT on my astrophoto images and I use Windows, so I had to tinker and compile ImageMagick with FFTW support. To save other people the thouble, I've made the 32-bit binaries available for download here - http://blog.astrophotographytargets.com ... n-windows/