This calss performs the interpolation of two Spectrum processing data objects. More...
#include <SpectrumInterpolator.hxx>
Public Member Functions | |
SpectrumInterpolator (const SpecInterpConfig &c=Config()) | |
~SpectrumInterpolator () | |
const ProcessingConfig & | GetConfig () const |
Configuration getter. | |
bool | Do (void) |
Supervised mode execution method (using ports). | |
bool | Do (Spectrum &in1, Spectrum &in2, Spectrum &out) |
bool | SetPrototypes (const Spectrum &in1, const Spectrum &in2, const Spectrum &out) |
Change the internal type state. | |
bool | SetPrototypes () |
bool | UnsetPrototypes () |
bool | MayDisableExecution () const |
Public Attributes | |
FloatInControl | mInterpolationFactorCtl |
Input control for interpolation factor. |
This calss performs the interpolation of two Spectrum processing data objects.
It Allows any possible attribute configuration in its inputs and in its output, but it performs faster when prototype configuration of the data is specified using SetPrototypes(...), in certain situations:
The BPFxBPF sum is being thought. If both BPFs have the same range and point possition, the way to go is obvious, but in other situations it is not so simple. Whe should probably merge both BPFs, into a new BPF.
Definition at line 78 of file SpectrumInterpolator.hxx.
CLAM::SpectrumInterpolator::SpectrumInterpolator | ( | const SpecInterpConfig & | c = Config() |
) |
Definition at line 36 of file SpectrumInterpolator.cxx.
References CLAM::Processing::Configure().
CLAM::SpectrumInterpolator::~SpectrumInterpolator | ( | ) | [inline] |
Definition at line 132 of file SpectrumInterpolator.hxx.
Definition at line 58 of file SpectrumInterpolator.cxx.
References CLAM_ASSERT, CLAM_DEBUG_ASSERT, and CLAM::Processing::IsRunning().
bool CLAM::SpectrumInterpolator::Do | ( | void | ) | [virtual] |
Supervised mode execution method (using ports).
Implements CLAM::Processing.
Definition at line 106 of file SpectrumInterpolator.cxx.
References CLAM_ASSERT.
Referenced by CLAM::FrameInterpolator::Do().
const ProcessingConfig& CLAM::SpectrumInterpolator::GetConfig | ( | ) | const [inline, virtual] |
Configuration getter.
Gets the configuration parameters used to create the object.
Reimplemented from CLAM::Processing.
Definition at line 133 of file SpectrumInterpolator.hxx.
bool CLAM::SpectrumInterpolator::MayDisableExecution | ( | ) | const [inline] |
Definition at line 153 of file SpectrumInterpolator.hxx.
bool CLAM::SpectrumInterpolator::SetPrototypes | ( | ) |
Definition at line 299 of file SpectrumInterpolator.cxx.
References CLAM_ASSERT.
bool CLAM::SpectrumInterpolator::SetPrototypes | ( | const Spectrum & | in1, | |
const Spectrum & | in2, | |||
const Spectrum & | out | |||
) |
Change the internal type state.
Apart from prototype configuration, the Size, Scale and SpectralRange attributes of each Spectrum are also checked.
Definition at line 115 of file SpectrumInterpolator.cxx.
References CLAM::SpecTypeFlags::bComplex, CLAM::SpecTypeFlags::bMagPhase, CLAM::SpecTypeFlags::bMagPhaseBPF, CLAM::SpecTypeFlags::bPolar, CLAM_ASSERT, CLAM::EScale::eLinear, CLAM::EScale::eLog, CLAM::Spectrum::GetSize(), and CLAM::Spectrum::GetType().
bool CLAM::SpectrumInterpolator::UnsetPrototypes | ( | ) |
Definition at line 306 of file SpectrumInterpolator.cxx.
Input control for interpolation factor.
Definition at line 156 of file SpectrumInterpolator.hxx.