Basic Image AlgorithmS Library
2.8.0
|
Wrapper to the fftpack library from netlib (see fftpack/fft.c), implementing the fft (Fast Fourier Transform) for images. More...
#include <Image/FFT2D_free.hh>
Public Member Functions | |
FFT2D_free () | |
void | Forward (const Image< StorageType > &in, Image< float > &ComplexOut) |
apply FFT on More... | |
void | GetMagnitude (const Image< float > &ComplexIn, Image< float > &value) |
take the spectrum image (2-channel) and compute the absolute value for each pixel More... | |
void | Init (int sizex, int sizey) |
void | Normalize (Image< float > &Image) |
apply normalisation on spectrum image, which is float-type More... | |
void | Reverse (const Image< float > &ComplexIn, Image< StorageType > &res) |
virtual | ~FFT2D_free () |
Protected Member Functions | |
void | ComplexColumnToWorkArray1_ (const Image< float > &ComplexImg, unsigned int col) |
void | ComplexRowToWorkArray0_ (const Image< float > &ComplexImg, unsigned int row) |
void | WorkArray0ToComplexRow_ (Image< float > &ComplexImg, unsigned int row) |
void | WorkArray1ToComplexColumn_ (Image< float > &ComplexImg, unsigned int col) |
Protected Attributes | |
unsigned long long int | Normalize_ |
float * | TmpArray0_ |
float * | TmpArray1_ |
long int | TmpArraySize0_ |
long int | TmpArraySize1_ |
float * | WorkArray0_ |
float * | WorkArray1_ |
long int | WorkSize0_ |
long int | WorkSize1_ |
Wrapper to the fftpack library from netlib (see fftpack/fft.c), implementing the fft (Fast Fourier Transform) for images.
This is a replacement for FFT2D which is usable under the GPL.
Definition at line 42 of file FFT2D_free.hh.
FFT2D_free::FFT2D_free | ( | ) |
Definition at line 12 of file FFT2D_free.cpp.
|
virtual |
Definition at line 24 of file FFT2D_free.cpp.
|
protected |
Definition at line 71 of file FFT2D_free.cpp.
References BIAS::ImageBase::GetHeight(), and BIAS::Image< StorageType >::GetImageDataArray().
|
protected |
Definition at line 84 of file FFT2D_free.cpp.
References BIAS::Image< StorageType >::GetImageDataArray(), and BIAS::ImageBase::GetWidth().
void FFT2D_free::Forward | ( | const Image< StorageType > & | in, |
Image< float > & | ComplexOut | ||
) |
apply FFT on
in,result | is 2-channel image with real an img. Result ist _not_normalized. |
Definition at line 120 of file FFT2D_free.cpp.
References BIAS::ImageBase::GetChannelCount(), BIAS::ImageBase::GetHeight(), BIAS::Image< StorageType >::GetImageDataArray(), BIAS::ImageBase::GetWidth(), and BIAS::Image< StorageType >::Init().
void FFT2D_free::GetMagnitude | ( | const Image< float > & | ComplexIn, |
Image< float > & | value | ||
) |
take the spectrum image (2-channel) and compute the absolute value for each pixel
Definition at line 197 of file FFT2D_free.cpp.
References BIAS::ImageBase::GetHeight(), BIAS::Image< StorageType >::GetImageData(), BIAS::ImageBase::GetWidth(), BIAS::Image< StorageType >::Init(), BIAS::ImageBase::IsEmpty(), and BIAS::Image< StorageType >::Release().
void FFT2D_free::Init | ( | int | sizex, |
int | sizey | ||
) |
Definition at line 32 of file FFT2D_free.cpp.
void FFT2D_free::Normalize | ( | Image< float > & | Image | ) |
apply normalisation on spectrum image, which is float-type
Definition at line 184 of file FFT2D_free.cpp.
References BIAS::ImageBase::GetChannelCount(), BIAS::ImageBase::GetHeight(), BIAS::Image< StorageType >::GetImageData(), and BIAS::ImageBase::GetWidth().
void FFT2D_free::Reverse | ( | const Image< float > & | ComplexIn, |
Image< StorageType > & | res | ||
) |
Definition at line 154 of file FFT2D_free.cpp.
References BIAS::ImageBase::GetHeight(), BIAS::Image< StorageType >::GetImageDataArray(), BIAS::ImageBase::GetWidth(), and BIAS::Image< StorageType >::Init().
|
protected |
Definition at line 96 of file FFT2D_free.cpp.
References BIAS::Image< StorageType >::GetImageDataArray(), and BIAS::ImageBase::GetWidth().
|
protected |
Definition at line 106 of file FFT2D_free.cpp.
References BIAS::ImageBase::GetHeight(), and BIAS::Image< StorageType >::GetImageDataArray().
|
protected |
Definition at line 77 of file FFT2D_free.hh.
|
protected |
Definition at line 75 of file FFT2D_free.hh.
|
protected |
Definition at line 75 of file FFT2D_free.hh.
|
protected |
Definition at line 76 of file FFT2D_free.hh.
|
protected |
Definition at line 76 of file FFT2D_free.hh.
|
protected |
Definition at line 74 of file FFT2D_free.hh.
|
protected |
Definition at line 74 of file FFT2D_free.hh.
|
protected |
Definition at line 73 of file FFT2D_free.hh.
|
protected |
Definition at line 73 of file FFT2D_free.hh.