Basic Image AlgorithmS Library
2.8.0
|
Wrapper to the fftw3 library. More...
#include <MathAlgo/FFT.hh>
Public Member Functions | |
void | AddDebugLevel (const long int lv) |
void | AddDebugLevel (const std::string &name) |
void | Compute (double *in) |
slow, memcopys in to internal input data More... | |
void | Compute (Vector< double > &in) |
slow, memcopys in to internal input data More... | |
void | Compute () |
input must be filled before with GetInput More... | |
bool | DebugLevelIsSet (const long int lv) const |
bool | DebugLevelIsSet (const std::string &name) const |
void | DumpResult (std::ostream &os=std::cout) |
FFT () | |
int | GetDebugLevel () const |
std::ostream & | GetDebugStream () const |
void | GetDebugStream (std::ostream &os) const |
double * | GetInput () |
returns the internal data. More... | |
void | GetMagnitude (double *mag) |
returns the resulting magnitude, mag must be of length size/2+1 (rounded downwards) More... | |
void | GetMagnitude (Vector< double > &mag) |
returns the phase More... | |
void | GetPhase (double *phase) |
returns the resulting phase, phase must be of length size/2+1 (rounded downwards) More... | |
void | GetPhase (Vector< double > &phase) |
returns the magnitude More... | |
std::complex< double > * | GetResult () |
returns the internal data. More... | |
void | Init (int size) |
initializes the internal variables. More... | |
long int | Name2DebugLevel (const std::string &name) const |
looks up a debuglevel in the internal map, returns 0 if not found More... | |
long int | NewDebugLevel (const std::string &name) |
creates a new debuglevel More... | |
void | PrintDebugLevel (std::ostream &os=std::cout) const |
void | Release () |
cal this before a second call to Init() More... | |
void | RemoveDebugLevel (const long int lv) |
void | RemoveDebugLevel (const std::string &name) |
void | SetDebugLevel (const long int lv) |
void | SetDebugLevel (const std::string &name) |
void | SetDebugStream (const std::ostream &os) |
void | ShowDebugLevel (std::ostream &os=std::cout) const |
prints all internally known debuglevels More... | |
~FFT () | |
Static Public Member Functions | |
static long int | GetGlobalDebugLevel () |
static void | SetGlobalDebugLevel (long int lev) |
Protected Member Functions | |
long | ConsumeNextFreeDebuglevel_ () |
returns the next available debuglevel More... | |
Protected Attributes | |
double * | _in |
size_t | _InputSize |
long int | _liDebugLevel |
long int | _liNextDebugLevel |
new concept, debuglevel are managed here in the debug class More... | |
fftw_complex * | _out |
int | _OutNum |
fftw_plan | _p |
int | _Size |
std::map< std::string, long int > | _String2Debuglevel |
Static Protected Attributes | |
static std::ostream | _zDebugStream |
static long int | GlobalDebugLevel = 0 |
Wrapper to the fftw3 library.
a slow interface for Vector<double> also exists an example exists in Examples/ExampleFFT, see ExampleFFT.cpp
|
inlineinherited |
Definition at line 355 of file Debug.hh.
Referenced by BIAS::GLProjectionParametersBase::AddDebugLevel(), BIAS::Triangulation::CorrectCorrespondences(), BIAS::FilterBase< InputStorageType, OutputStorageType >::FilterBase(), BIAS::ShowCamWxVideoSourceFactory::OpenDevice(), and BIAS::SceneOpenSceneGraph::SceneOpenSceneGraph().
|
inlineinherited |
void FFT::Compute | ( | double * | in | ) |
slow, memcopys in to internal input data
void FFT::Compute | ( | Vector< double > & | in | ) |
slow, memcopys in to internal input data
Definition at line 83 of file FFT.cpp.
References BIAS::Vector< T >::GetData(), and BIAS::Vector< T >::Size().
|
inline |
|
inlineprotectedinherited |
|
inlineinherited |
Definition at line 341 of file Debug.hh.
Referenced by BIAS::GenSynthMatches::_AddUniformDistributedOutliers(), BIAS::GenSynthMatches::_CreateCamMovement(), BIAS::GenSynthMatches::_CreateStatic2DPoints(), BIAS::UnscentedTransform::ComputeSigmaPoints_(), BIAS::Triangulation::CorrectCorrespondences(), BIAS::GenSynthMatches::GetGTNormalizedF(), BIAS::MonteCarloTransform::GetSamples_(), and BIAS::MonteCarloTransform::Transform().
|
inlineinherited |
void FFT::DumpResult | ( | std::ostream & | os = std::cout | ) |
|
inlineinherited |
Definition at line 332 of file Debug.hh.
Referenced by BIAS::listenthread(), BIAS::Image< StorageType >::operator=(), and BIAS::ImageBase::operator=().
|
inlineinherited |
|
inlineinherited |
|
inlinestaticinherited |
|
inline |
void FFT::GetMagnitude | ( | double * | mag | ) |
returns the resulting magnitude, mag must be of length size/2+1 (rounded downwards)
void FFT::GetMagnitude | ( | Vector< double > & | mag | ) |
returns the phase
Definition at line 127 of file FFT.cpp.
References TNT::Vector< T >::newsize(), and BIAS::Vector< T >::Size().
void FFT::GetPhase | ( | double * | phase | ) |
returns the resulting phase, phase must be of length size/2+1 (rounded downwards)
void FFT::GetPhase | ( | Vector< double > & | phase | ) |
returns the magnitude
Definition at line 116 of file FFT.cpp.
References TNT::Vector< T >::newsize(), and BIAS::Vector< T >::Size().
|
inline |
void FFT::Init | ( | int | size | ) |
initializes the internal variables.
This may take some time (i.e. several seconds) since some measurements are done
|
inlineinherited |
|
inlineinherited |
creates a new debuglevel
Definition at line 474 of file Debug.hh.
Referenced by BIAS::COSAC< SolutionType >::COSAC(), BIAS::ProjectionParametersPerspectiveDepth::Init(), BIAS::MonteCarloTransform::MonteCarloTransform(), BIAS::PMatrixEstimation::PMatrixEstimation(), BIAS::PreemptiveRANSAC< SolutionType >::PreemptiveRANSAC(), BIAS::RANSACPreKnowledge< SolutionType >::RANSACPreKnowledge(), BIAS::ROI::ROI(), BIAS::RotationAveraging::RotationAveraging(), BIAS::SceneOpenSceneGraph::SceneOpenSceneGraph(), BIAS::ThreeDOutOpenSceneGraph::ThreeDOutOpenSceneGraph(), BIAS::Triangulation::Triangulation(), and BIAS::UnscentedTransform::UnscentedTransform().
|
inlineinherited |
void FFT::Release | ( | ) |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
Definition at line 318 of file Debug.hh.
Referenced by BIAS::ShowCamWxVideoSourceFactory::CreateBumbleBee(), BIAS::ShowCamWxVideoSourceFactory::CreateDCAM(), BIAS::VideoSource_MDcam::ScanBus(), BIAS::GLProjectionParametersBase::SetDebugLevel(), BIAS::VideoSource_Disk::VideoSource_Disk(), BIAS::VideoSource_DV2::VideoSource_DV2(), BIAS::VideoSource_DV::VideoSource_DV_Internal_Init_(), and BIAS::VideoSource_V4L::VideoSource_V4L().
|
inlineinherited |
|
inlineinherited |
|
inlinestaticinherited |
|
inlineinherited |
|
protectedinherited |
Definition at line 510 of file Debug.hh.
Referenced by BIAS::Debug::operator=(), and BIAS::ImageBase::operator=().
|
protectedinherited |
new concept, debuglevel are managed here in the debug class
Definition at line 516 of file Debug.hh.
Referenced by BIAS::Debug::operator=().
|
protectedinherited |
Definition at line 517 of file Debug.hh.
Referenced by BIAS::Debug::operator=().
|
staticprotectedinherited |
Definition at line 511 of file Debug.hh.
Referenced by BIAS::Debug::operator=().
|
staticprotectedinherited |