|Version 2 (modified by benl, 7 years ago)|
Applies a highpass to a BMP image. The first argument is the lower cutoff frequency.
Each of the RGB channels is converted to the frequency domain, the lower frequencies are set to zero, then the channels are converted back to the image domain.
repa-fft2d-highpass 2 lena.bmp lena-high2.bmp
The main algorithm is at http://code.haskell.org/repa/repa-stable/repa-algorithms/Data/Array/Repa/Algorithms/FFT.hs
http://en.wikipedia.org/wiki/Lenna is a standard test image.
|full size||full size|
Compiled with GHC 6.13.20100309. 512x512 image.
Running on a Intel i7 iMac.