This class performs the product of two Spectrum processing data objects. More...
#include <SpectrumProduct.hxx>
Public Member Functions | |
SpectrumProduct (const Config &c=Config()) | |
virtual | ~SpectrumProduct () |
bool | Do () |
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 | |
InPort< Spectrum > | mInput1 |
InPort< Spectrum > | mInput2 |
OutPort< Spectrum > | mOutput |
This class performs the product of two Spectrum processing data objects.
Its primary use will be to allow frecuency domain filtering, by taking the frecuency response as one of its inputs. (It implements the funcionality provided in the old CCLAMApplyFDFilter class).
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 product 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 69 of file SpectrumProduct.hxx.
Definition at line 37 of file SpectrumProduct.cxx.
CLAM::SpectrumProduct::~SpectrumProduct | ( | ) | [virtual] |
Definition at line 47 of file SpectrumProduct.cxx.
Definition at line 51 of file SpectrumProduct.cxx.
bool CLAM::SpectrumProduct::Do | ( | ) | [virtual] |
Supervised mode execution method (using ports).
Implements CLAM::Processing.
Definition at line 99 of file SpectrumProduct.cxx.
bool CLAM::SpectrumProduct::MayDisableExecution | ( | ) | const [inline] |
Definition at line 136 of file SpectrumProduct.hxx.
bool CLAM::SpectrumProduct::SetPrototypes | ( | ) |
Definition at line 306 of file SpectrumProduct.cxx.
bool CLAM::SpectrumProduct::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 120 of file SpectrumProduct.cxx.
bool CLAM::SpectrumProduct::UnsetPrototypes | ( | ) |
Definition at line 312 of file SpectrumProduct.cxx.
Definition at line 110 of file SpectrumProduct.hxx.
Definition at line 111 of file SpectrumProduct.hxx.
Definition at line 112 of file SpectrumProduct.hxx.