00001 // This is core/vil/algo/vil_fft.h 00002 #ifndef vil_fft_h_ 00003 #define vil_fft_h_ 00004 //: 00005 // \file 00006 // \brief Functions to apply the FFT to an image. 00007 // \author Fred Wheeler 00008 00009 #include <vcl_complex.h> 00010 #include <vil/vil_image_view.h> 00011 00012 //: Perform in place forward FFT. 00013 // \relatesalso vil_image_view 00014 // \relatesalso vil_fft_2d_bwd 00015 template<class T> 00016 void 00017 vil_fft_2d_fwd (vil_image_view<vcl_complex<T> > & img); 00018 00019 //: Perform in place backward FFT. 00020 // Unlike vnl_fft_2d, scaling is done properly, so using 00021 // vil_fft_2d_fwd(), then vil_fft_2d_bwd() gets back the original 00022 // image. 00023 // \relatesalso vil_image_view 00024 // \relatesalso vil_fft_2d_fwd 00025 template<class T> 00026 void 00027 vil_fft_2d_bwd (vil_image_view<vcl_complex<T> > & img); 00028 00029 #endif // vil_fft_h_