Example for using the fast fourier Transform (FFT) Tiles
- Author
- MIP
#include <Image/FFT2D_Tiles.hh>
#include <Base/Image/Image.hh>
#include <Base/Image/ImageIO.hh>
#include <Base/Image/ImageConvert.hh>
using namespace std;
using namespace BIAS;
int main(int argc, char *argv[])
{
if (argc!=2){
cerr << argv[0] << " <image>\n";
return -1;
}
if (ImageIO::Load(argv[1], im)!=0){
BIASERR("error loading image "<<argv[1]);
return -2;
}
ImageConvert::ToGrey(im,imgrey);
ImageIO::Save("FFT2D-abs",res);
return 0;
}