This class performs the interpolation of two SpectralPeakArray processing data objects. More...
#include <SpectralPeakArrayAdder.hxx>
Public Member Functions | |
SpectralPeakArrayAdder (const Config &c=Config()) | |
~SpectralPeakArrayAdder () | |
bool | Do () |
Supervised mode execution method (using ports). | |
bool | Do (const SpectralPeakArray &in1, const SpectralPeakArray &in2, SpectralPeakArray &out) |
Public Attributes | |
InPort< SpectralPeakArray > | mIn1 |
Ports. | |
InPort< SpectralPeakArray > | mIn2 |
OutPort< SpectralPeakArray > | mOut |
This class performs the interpolation of two SpectralPeakArray processing data objects.
Definition at line 48 of file SpectralPeakArrayAdder.hxx.
Definition at line 31 of file SpectralPeakArrayAdder.cxx.
References CLAM::Processing::Configure().
CLAM::SpectralPeakArrayAdder::~SpectralPeakArrayAdder | ( | ) | [inline] |
Definition at line 54 of file SpectralPeakArrayAdder.hxx.
bool CLAM::SpectralPeakArrayAdder::Do | ( | const SpectralPeakArray & | in1, | |
const SpectralPeakArray & | in2, | |||
SpectralPeakArray & | out | |||
) |
This loop may be a little more efficient by ussing the buffers directly. But it would surely become muc less readable and much longer. TODO?
Definition at line 41 of file SpectralPeakArrayAdder.cxx.
References CLAM::SpectralPeakArray::AddSpectralPeak(), CLAM_ASSERT, CLAM_DEBUG_ASSERT, CLAM::SpectralPeakArray::GetFreq(), CLAM::SpectralPeakArray::GetnPeaks(), CLAM::SpectralPeakArray::GetSpectralPeak(), CLAM::Processing::IsRunning(), CLAM::SpectralPeakArray::SetnPeaks(), and CLAM::DynamicType::UpdateData().
bool CLAM::SpectralPeakArrayAdder::Do | ( | ) | [inline, virtual] |
Supervised mode execution method (using ports).
Implements CLAM::Processing.
Definition at line 56 of file SpectralPeakArrayAdder.hxx.
Referenced by CLAM::FrameAdder::Do().
Ports.
Definition at line 61 of file SpectralPeakArrayAdder.hxx.
Definition at line 62 of file SpectralPeakArrayAdder.hxx.
Definition at line 63 of file SpectralPeakArrayAdder.hxx.