CLAM::SpectrumInterpolator Class Reference

#include <SpectrumInterpolator.hxx>

Inheritance diagram for CLAM::SpectrumInterpolator:

CLAM::Processing

List of all members.


Detailed Description

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:

Todo:
Possible optimisations (which require more states):

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.


Public Member Functions

 SpectrumInterpolator ()
 SpectrumInterpolator (const SpecInterpConfig &c)
 ~SpectrumInterpolator ()
const ProcessingConfigGetConfig () 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

SpectrumInterpolatorCtl mInterpolationFactorCtl
 Input control for interpolation factor.

Constructor & Destructor Documentation

CLAM::SpectrumInterpolator::SpectrumInterpolator (  ) 

Definition at line 37 of file SpectrumInterpolator.cxx.

References CLAM::Processing::Configure().

CLAM::SpectrumInterpolator::SpectrumInterpolator ( const SpecInterpConfig c  ) 

Definition at line 48 of file SpectrumInterpolator.cxx.

References CLAM::Processing::Configure().

CLAM::SpectrumInterpolator::~SpectrumInterpolator (  )  [inline]

Definition at line 137 of file SpectrumInterpolator.hxx.


Member Function Documentation

const ProcessingConfig& CLAM::SpectrumInterpolator::GetConfig (  )  const [inline, virtual]

Configuration getter.

Gets the configuration parameters used to create the object.

Returns:
Const reference to the configuration object. The usual way to perform a configuration change in the processing object is to take a copy of this reference, to change it and to send it with the Configure method. If not overriden, it returns a NullProcessingConfig.

Reimplemented from CLAM::Processing.

Definition at line 139 of file SpectrumInterpolator.hxx.

bool CLAM::SpectrumInterpolator::Do ( void   )  [virtual]

Supervised mode execution method (using ports).

Returns:
A boolean telling whether it has been output

Implements CLAM::Processing.

Definition at line 118 of file SpectrumInterpolator.cxx.

References CLAM_ASSERT.

Referenced by CLAM::SMSMorph::Do(), and CLAM::FrameInterpolator::Do().

bool CLAM::SpectrumInterpolator::Do ( Spectrum in1,
Spectrum in2,
Spectrum out 
)

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 127 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::SetPrototypes (  ) 

Definition at line 308 of file SpectrumInterpolator.cxx.

References CLAM_ASSERT.

bool CLAM::SpectrumInterpolator::UnsetPrototypes (  ) 

Definition at line 315 of file SpectrumInterpolator.cxx.

bool CLAM::SpectrumInterpolator::MayDisableExecution (  )  const [inline]

Definition at line 160 of file SpectrumInterpolator.hxx.


Member Data Documentation

Input control for interpolation factor.

Definition at line 163 of file SpectrumInterpolator.hxx.


The documentation for this class was generated from the following files:

Generated on Tue Aug 12 22:33:48 2008 for CLAM by  doxygen 1.5.5