Macros | Functions
vil_fft.hxx File Reference

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

#include <complex>
#include <vector>
#include "vil_fft.h"
#include <vil/vil_image_view.h>
#include <vnl/algo/vnl_fft_1d.h>

Go to the source code of this file.

Macros

#define VIL_FFT_INSTANTIATE(T)
 

Functions

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

Detailed Description

Functions to apply the FFT to an image.

Author
Fred Wheeler

Definition in file vil_fft.hxx.

Macro Definition Documentation

◆ VIL_FFT_INSTANTIATE

#define VIL_FFT_INSTANTIATE (   T)
Value:
template void vil_fft_2d_base(std::complex<T >* data, \
unsigned n0, std::ptrdiff_t step0, \
unsigned n1, std::ptrdiff_t step1, \
unsigned n2, std::ptrdiff_t step2, \
int dir); \
template void vil_fft_2d_fwd(vil_image_view<std::complex<T > >& img); \
template void vil_fft_2d_bwd(vil_image_view<std::complex<T > >& img)
Concrete view of image data of type T held in memory.
Definition: vil_fwd.h:13
void vil_fft_2d_fwd(vil_image_view< std::complex< T > > &img)
Perform in place forward FFT.
Definition: vil_fft.hxx:63
void vil_fft_2d_bwd(vil_image_view< std::complex< T > > &img)
Perform in place backward FFT.
Definition: vil_fft.hxx:79

Definition at line 94 of file vil_fft.hxx.

Function Documentation

◆ vil_fft_2d_bwd()

template<class T >
void vil_fft_2d_bwd ( vil_image_view< std::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 79 of file vil_fft.hxx.

◆ vil_fft_2d_fwd()

template<class T >
void vil_fft_2d_fwd ( vil_image_view< std::complex< T > > &  img)

Perform in place forward FFT.

Definition at line 63 of file vil_fft.hxx.