This class performs the sum of N Spectrum processing data objects. More...
#include <SpectrumAdder.hxx>
Public Member Functions | |
SpectrumAdder () | |
SpectrumAdder (const SpecAdderConfig &c) | |
~SpectrumAdder () | |
const ProcessingConfig & | GetConfig () const |
Configuration getter. | |
bool | Do (void) |
Supervised mode execution method (using ports). | |
bool | Do (Spectrum **inputs, Spectrum &out) |
bool | SetPrototypes (Spectrum **inputs, const Spectrum &out) |
Change the internal type state. | |
bool | SetPrototypes () |
bool | UnsetPrototypes () |
bool | MayDisableExecution () const |
This class performs the sum of N 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:
Possible optimisations (which require more states):
Definition at line 76 of file SpectrumAdder.hxx.
CLAM::SpectrumAdder::SpectrumAdder | ( | ) |
Definition at line 34 of file SpectrumAdder.cxx.
CLAM::SpectrumAdder::SpectrumAdder | ( | const SpecAdderConfig & | c | ) |
Definition at line 45 of file SpectrumAdder.cxx.
CLAM::SpectrumAdder::~SpectrumAdder | ( | ) |
Definition at line 130 of file SpectrumAdder.cxx.
Definition at line 159 of file SpectrumAdder.cxx.
bool CLAM::SpectrumAdder::Do | ( | void | ) | [virtual] |
Supervised mode execution method (using ports).
Implements CLAM::Processing.
Definition at line 189 of file SpectrumAdder.cxx.
const ProcessingConfig& CLAM::SpectrumAdder::GetConfig | ( | ) | const [inline, virtual] |
Configuration getter.
Gets the configuration parameters used to create the object.
Reimplemented from CLAM::Processing.
Definition at line 140 of file SpectrumAdder.hxx.
bool CLAM::SpectrumAdder::MayDisableExecution | ( | ) | const [inline] |
Definition at line 160 of file SpectrumAdder.hxx.
bool CLAM::SpectrumAdder::SetPrototypes | ( | ) |
Definition at line 287 of file SpectrumAdder.cxx.
Change the internal type state.
Apart from prototype configuration, the Size, Scale and SpectralRange attributes of each Spectrum are also checked.
Definition at line 196 of file SpectrumAdder.cxx.
bool CLAM::SpectrumAdder::UnsetPrototypes | ( | ) |
Definition at line 292 of file SpectrumAdder.cxx.
References CLAM_ASSERT.