Home Projects Work Building ImageMagick with FFT support
Building ImageMagick with FFT support PDF Print E-mail
Written by Administrator   
Monday, 25 July 2011 15:32

I recently needed the fft functionality available with ImageMagick but the command convert image.png -fft failed. Turns out you need to build ImageMagick against the FFTW library, but its not terribly easy to figure out how to do this. The advanced unix compilation for ImageMagick page doesn't describe specifically how to do this. The fPIC and fft flags described below are very important to get this to build correctly

Here's a quick outline of how to build ImageMagick to use the fft functions:

1) Download the FFTW source code

a) unzip the fftw3 source, cd into the fftw3 source directory

b) ./configure CXXFLAGS=-fPIC CFLAGS=-fPIC

c) make

d) sudo make install

2) Download the ImageMagick source

a) unzip the ImageMagick source and cd into the source directory

b) ./configure --enable-hdri -with-fftw

c) make

d) sudo make install

 

Then convert image.png -fft should work!

 

----->  

 
Copyright © 2017 gbook.org. All Rights Reserved.
Joomla! is Free Software released under the GNU/GPL License.