#include <Segmentator.hxx>
Public Member Functions | |
Segmentator () | |
Segmentator (const SegmentatorConfig &c) | |
virtual | ~Segmentator () |
const char * | GetClassName () const |
Override it in every subclass and retur the name of that class. | |
const ProcessingConfig & | GetConfig () const |
Configuration getter. | |
bool | Do () |
Supervised mode execution method (using ports). | |
bool | Do (Segment &originalSegment, SegmentDescriptors &descriptors) |
Protected Member Functions | |
virtual void | UnwrapDescriptors (const Segment &originalSegment, SegmentDescriptors &descriptors, Matrix &descriptorsValues) |
Protected Attributes | |
SegmentatorConfig | mConfig |
Definition at line 71 of file Segmentator.hxx.
Segmentator::Segmentator | ( | ) |
Definition at line 184 of file Segmentator.cxx.
References CLAM::Processing::Configure().
Segmentator::Segmentator | ( | const SegmentatorConfig & | c | ) |
Definition at line 189 of file Segmentator.cxx.
References CLAM::Processing::Configure().
Segmentator::~Segmentator | ( | ) | [virtual] |
Definition at line 194 of file Segmentator.cxx.
bool Segmentator::Do | ( | Segment & | originalSegment, | |
SegmentDescriptors & | descriptors | |||
) |
Definition at line 214 of file Segmentator.cxx.
References CLAM::Segment::GetnFrames(), mConfig, and UnwrapDescriptors().
bool Segmentator::Do | ( | ) | [virtual] |
Supervised mode execution method (using ports).
Implements CLAM::Processing.
Definition at line 204 of file Segmentator.cxx.
References CLAM_ASSERT, CLAM_DEBUG_ASSERT, and CLAM::Processing::IsRunning().
const char* CLAM::Segmentator::GetClassName | ( | ) | const [inline, virtual] |
Override it in every subclass and retur the name of that class.
Implements CLAM::Processing.
Definition at line 77 of file Segmentator.hxx.
const ProcessingConfig& CLAM::Segmentator::GetConfig | ( | ) | const [inline, virtual] |
Configuration getter.
Gets the configuration parameters used to create the object.
Reimplemented from CLAM::Processing.
Definition at line 78 of file Segmentator.hxx.
References mConfig.
void Segmentator::UnwrapDescriptors | ( | const Segment & | originalSegment, | |
SegmentDescriptors & | descriptors, | |||
Matrix & | descriptorsValues | |||
) | [protected, virtual] |
Definition at line 224 of file Segmentator.cxx.
References CLAM::AudioCentroidId, CLAM::AudioEnergyId, CLAM::AudioVarianceId, CLAM::AudioZeroCrossingRateId, CLAM::FundamentalId, CLAM::Segment::GetFrame(), CLAM::SegmentDescriptors::GetFrameD(), CLAM::Segment::GetnFrames(), mConfig, CLAM::MatrixTmpl< T >::SetAt(), CLAM::SpectralCentroidId, CLAM::SpectralEnergyId, CLAM::SpectralFlatnessId, CLAM::SpectralGeometricMeanId, CLAM::SpectralKurtosisId, CLAM::SpectralMeanId, CLAM::SpectralMoment2Id, CLAM::SpectralMoment3Id, CLAM::SpectralMoment4Id, CLAM::SpectralMoment5Id, and CLAM::SpectralMoment6Id.
Referenced by Do().
SegmentatorConfig CLAM::Segmentator::mConfig [protected] |
Definition at line 83 of file Segmentator.hxx.
Referenced by Do(), GetConfig(), and UnwrapDescriptors().