Basic Image AlgorithmS Library
2.8.0
|
Wrapper to the fftw3 library adapted for 2D image filtering. More...
#include <Image/FFT2D.hh>
Public Member Functions | |
virtual int | CrossPowerSpectrum (const Image< InputStorageType > &src1, const Image< InputStorageType > &src2, Image< OutputStorageType > &dst1) |
FFT2D () | |
virtual int | Filter (const Image< InputStorageType > &src, Image< OutputStorageType > &dst) |
dst.GetChannelCount()==2*src.GetCHannelCount() The result is not normalized! More... | |
virtual int | Filter (const Image< InputStorageType > &src, Image< OutputStorageType > &dst1, Image< OutputStorageType > &dst2) |
dstX.GetChannelCount()==src.GetCHannelCount() The result is not normalized! More... | |
void | Init (int width, int height) |
initializes for forward transformation on complete image. More... | |
virtual int | Normalize (Image< OutputStorageType > &dst) |
Normalize output after transformation. More... | |
void | Release () |
call this before a second call to Init() More... | |
virtual int | TransformAbs (const Image< InputStorageType > &src, Image< OutputStorageType > &dst) |
Transform forward and get absolute value from complex result The result is not normalized! More... | |
virtual int | TransformLogAbs (const Image< InputStorageType > &src, Image< OutputStorageType > &dst) |
dstX.GetChannelCount()==src.GetCHannelCount() More... | |
virtual int | TransformPhase (const Image< InputStorageType > &src, Image< OutputStorageType > &dst) |
dstX.GetChannelCount()==src.GetCHannelCount() More... | |
virtual int | TransformReverse (const Image< OutputStorageType > &src, Image< InputStorageType > &dst) |
Transform reverse, src must be of _SizeX,_OutSizeY,2. More... | |
virtual | ~FFT2D () |
Protected Member Functions | |
virtual int | Forward_ (const Image< InputStorageType > &src) |
virtual void | GetBordersValid_ (int &border_x, int &border_y) const |
virtual int | Reverse_ (const Image< OutputStorageType > &src) |
Protected Attributes | |
double * | _in |
fftw_complex * | _out |
int | _OutNum |
int | _OutSizeY |
fftw_plan | _p_forward |
fftw_plan | _p_reverse |
int | _Size |
int | _SizeX |
int | _SizeY |
Wrapper to the fftw3 library adapted for 2D image filtering.
FFT2D::FFT2D | ( | ) |
|
virtual |
|
virtual |
Definition at line 273 of file FFT2D.cpp.
References BIAS::Image< StorageType >::GetImageData(), BIAS::Image< StorageType >::Init(), BIAS::ImageBase::IsEmpty(), and BIAS::Image< StorageType >::Release().
|
virtual |
dst.GetChannelCount()==2*src.GetCHannelCount()
The result is not normalized!
dst.GetChannelCount()==2*src.GetCHannelCount()
Reimplemented in BIAS::FFT2D_Tiles< InputStorageType, OutputStorageType >.
Definition at line 156 of file FFT2D.cpp.
References BIAS::Image< StorageType >::GetImageData(), BIAS::Image< StorageType >::Init(), BIAS::ImageBase::IsEmpty(), and BIAS::Image< StorageType >::Release().
|
virtual |
dstX.GetChannelCount()==src.GetCHannelCount()
The result is not normalized!
dstX.GetChannelCount()==src.GetCHannelCount()
Reimplemented in BIAS::FFT2D_Tiles< InputStorageType, OutputStorageType >.
Definition at line 177 of file FFT2D.cpp.
References BIAS::Image< StorageType >::GetImageData(), BIAS::Image< StorageType >::Init(), BIAS::ImageBase::IsEmpty(), and BIAS::Image< StorageType >::Release().
|
protectedvirtual |
Reimplemented in BIAS::FFT2D_Tiles< InputStorageType, OutputStorageType >.
Definition at line 98 of file FFT2D.cpp.
References BIAS::ImageBase::GetChannelCount(), BIAS::ImageBase::GetHeight(), BIAS::Image< StorageType >::GetImageData(), and BIAS::ImageBase::GetWidth().
|
protectedvirtual |
void FFT2D::Init | ( | int | width, |
int | height | ||
) |
|
virtual |
Normalize output after transformation.
Definition at line 258 of file FFT2D.cpp.
References BIAS::ImageBase::GetChannelCount(), BIAS::ImageBase::GetHeight(), BIAS::Image< StorageType >::GetImageData(), and BIAS::ImageBase::GetWidth().
void FFT2D::Release | ( | ) |
|
protectedvirtual |
Reimplemented in BIAS::FFT2D_Tiles< InputStorageType, OutputStorageType >.
Definition at line 125 of file FFT2D.cpp.
References BIAS::ImageBase::GetChannelCount(), BIAS::ImageBase::GetHeight(), BIAS::Image< StorageType >::GetImageData(), and BIAS::ImageBase::GetWidth().
|
virtual |
Transform forward and get absolute value from complex result
The result is not normalized!
dstX.GetChannelCount()==src.GetCHannelCount()
Reimplemented in BIAS::FFT2D_Tiles< InputStorageType, OutputStorageType >.
Definition at line 202 of file FFT2D.cpp.
References BIAS::Image< StorageType >::GetImageData(), BIAS::Image< StorageType >::Init(), BIAS::ImageBase::IsEmpty(), and BIAS::Image< StorageType >::Release().
|
virtual |
dstX.GetChannelCount()==src.GetCHannelCount()
Definition at line 222 of file FFT2D.cpp.
References BIAS::Image< StorageType >::GetImageData(), BIAS::Image< StorageType >::Init(), BIAS::ImageBase::IsEmpty(), and BIAS::Image< StorageType >::Release().
|
virtual |
dstX.GetChannelCount()==src.GetCHannelCount()
Definition at line 240 of file FFT2D.cpp.
References BIAS::Image< StorageType >::GetImageData(), BIAS::Image< StorageType >::Init(), BIAS::ImageBase::IsEmpty(), and BIAS::Image< StorageType >::Release().
|
virtual |
Transform reverse, src must be of _SizeX,_OutSizeY,2.
Reimplemented in BIAS::FFT2D_Tiles< InputStorageType, OutputStorageType >.
Definition at line 311 of file FFT2D.cpp.
References BIAS::Image< StorageType >::GetImageData(), BIAS::Image< StorageType >::Init(), BIAS::ImageBase::IsEmpty(), and BIAS::Image< StorageType >::Release().
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |