Defines | Functions
core/vil/algo/vil_fft.txx File Reference

Functions to apply the FFT to an image. More...

#include "vil_fft.h"
#include <vcl_complex.h>
#include <vcl_vector.h>
#include <vil/vil_image_view.h>
#include <vnl/algo/vnl_fft_1d.h>

Go to the source code of this file.

Defines

#define vil_fft_txx_
#define VIL_FFT_INSTANTIATE(T)

Functions

template<class T >
void vil_fft_2d_fwd (vil_image_view< vcl_complex< T > > &img)
 Perform in place forward FFT.
template<class T >
void vil_fft_2d_bwd (vil_image_view< vcl_complex< T > > &img)
 Perform in place backward FFT.

Detailed Description

Functions to apply the FFT to an image.

Author:
Fred Wheeler

Definition in file vil_fft.txx.


Define Documentation

#define VIL_FFT_INSTANTIATE (   T)
Value:
template void vil_fft_2d_base(vcl_complex<T >* data, \
                              unsigned n0, vcl_ptrdiff_t step0, \
                              unsigned n1, vcl_ptrdiff_t step1, \
                              unsigned n2, vcl_ptrdiff_t step2, \
                              int dir); \
template void vil_fft_2d_fwd(vil_image_view<vcl_complex<T > >& img); \
template void vil_fft_2d_bwd(vil_image_view<vcl_complex<T > >& img)

Definition at line 91 of file vil_fft.txx.

#define vil_fft_txx_

Definition at line 3 of file vil_fft.txx.


Function Documentation

template<class T >
void vil_fft_2d_bwd ( vil_image_view< vcl_complex< T > > &  img)

Perform in place backward FFT.

Unlike vnl_fft_2d, scaling is done properly, so using vil_fft_2d_fwd(), then vil_fft_2d_bwd() gets back the original image.

Definition at line 76 of file vil_fft.txx.

template<class T >
void vil_fft_2d_fwd ( vil_image_view< vcl_complex< T > > &  img)

Perform in place forward FFT.

Definition at line 60 of file vil_fft.txx.