qm-dsp
1.8
|
#include <ClusterMeltSegmenter.h>
Public Member Functions | |
ClusterMeltSegmenter (ClusterMeltSegmenterParams params) | |
virtual | ~ClusterMeltSegmenter () |
virtual void | initialise (int samplerate) |
virtual int | getWindowsize () |
virtual int | getHopsize () |
virtual void | extractFeatures (const double *samples, int nsamples) |
void | setFeatures (const std::vector< std::vector< double > > &f) |
virtual void | segment () |
void | segment (int m) |
int | getNSegmentTypes () |
virtual void | clear () |
const Segmentation & | getSegmentation () const |
Protected Member Functions | |
void | makeSegmentation (int *q, int len) |
void | extractFeaturesConstQ (const double *, int) |
void | extractFeaturesMFCC (const double *, int) |
Protected Attributes | |
Window< double > * | window |
FFTReal * | fft |
ConstantQ * | constq |
MFCC * | mfcc |
model_t * | model |
int * | q |
std::vector< std::vector< double > > | histograms |
feature_types | featureType |
double | hopSize |
double | windowSize |
int | fmin |
int | fmax |
int | nbins |
int | ncoeff |
int | ncomponents |
int | nHMMStates |
int | nclusters |
int | histogramLength |
int | neighbourhoodLimit |
Decimator * | decimator |
std::vector< std::vector< double > > | features |
Segmentation | segmentation |
int | samplerate |
Detailed Description
Definition at line 60 of file ClusterMeltSegmenter.h.
Constructor & Destructor Documentation
ClusterMeltSegmenter::ClusterMeltSegmenter | ( | ClusterMeltSegmenterParams | params | ) |
Definition at line 30 of file ClusterMeltSegmenter.cpp.
|
virtual |
Member Function Documentation
|
virtual |
Implements Segmenter.
Definition at line 50 of file ClusterMeltSegmenter.cpp.
References CQConfig::BPO, constq, CQConfig::CQThresh, decimator, FEATURE_TYPE_CHROMA, FEATURE_TYPE_CONSTQ, FEATURE_TYPE_MFCC, featureType, fft, MFCCConfig::fftsize, fmax, fmin, CQConfig::FS, ConstantQ::getFFTLength(), Decimator::getHighestSupportedFactor(), ConstantQ::getK(), getWindowsize(), CQConfig::max, mfcc, CQConfig::min, nbins, MFCCConfig::nceps, ncoeff, Segmenter::samplerate, ConstantQ::sparsekernel(), and MFCCConfig::want_c0.
|
virtual |
Implements Segmenter.
Definition at line 124 of file ClusterMeltSegmenter.cpp.
References Segmenter::samplerate, and windowSize.
Referenced by extractFeaturesConstQ(), extractFeaturesMFCC(), and initialise().
|
virtual |
Implements Segmenter.
Definition at line 130 of file ClusterMeltSegmenter.cpp.
References hopSize, and Segmenter::samplerate.
Referenced by makeSegmentation().
|
virtual |
Implements Segmenter.
Definition at line 135 of file ClusterMeltSegmenter.cpp.
References extractFeaturesConstQ(), extractFeaturesMFCC(), FEATURE_TYPE_CHROMA, FEATURE_TYPE_CONSTQ, FEATURE_TYPE_MFCC, and featureType.
void ClusterMeltSegmenter::setFeatures | ( | const std::vector< std::vector< double > > & | f | ) |
Definition at line 319 of file ClusterMeltSegmenter.cpp.
References FEATURE_TYPE_UNKNOWN, Segmenter::features, and featureType.
|
virtual |
Implements Segmenter.
Definition at line 325 of file ClusterMeltSegmenter.cpp.
References Segmenter::clear(), cluster_segment(), constq, constq_segment(), decimator, FEATURE_TYPE_MFCC, FEATURE_TYPE_UNKNOWN, Segmenter::features, featureType, histogramLength, makeSegmentation(), mfcc, nbins, nclusters, ncoeff, neighbourhoodLimit, nHMMStates, and q.
Referenced by makeSegmentation(), and segment().
|
virtual |
Implements Segmenter.
Definition at line 313 of file ClusterMeltSegmenter.cpp.
|
inline |
Definition at line 72 of file ClusterMeltSegmenter.h.
References ClusterMeltSegmenterParams::nclusters.
|
protected |
Definition at line 380 of file ClusterMeltSegmenter.cpp.
References Segment::end, getHopsize(), nclusters, Segmentation::nsegtypes, Segmentation::samplerate, Segmenter::samplerate, segment(), Segmenter::segmentation, Segmentation::segments, Segment::start, and Segment::type.
Referenced by segment().
|
protected |
Definition at line 145 of file ClusterMeltSegmenter.cpp.
References constq, Window< T >::cut(), decimator, Segmenter::features, fft, FFTReal::forward(), Decimator::getFactor(), ConstantQ::getFFTLength(), Window< T >::getSize(), getWindowsize(), HammingWindow, ncoeff, ConstantQ::process(), Decimator::process(), and window.
Referenced by extractFeatures().
|
protected |
Definition at line 241 of file ClusterMeltSegmenter.cpp.
References decimator, Segmenter::features, Decimator::getFactor(), MFCC::getfftlength(), getWindowsize(), mfcc, ncoeff, MFCC::process(), and Decimator::process().
Referenced by extractFeatures().
|
inlinevirtualinherited |
Definition at line 52 of file Segmenter.h.
Referenced by segment().
|
inlineinherited |
Definition at line 53 of file Segmenter.h.
Member Data Documentation
|
protected |
Definition at line 80 of file ClusterMeltSegmenter.h.
Referenced by extractFeaturesConstQ(), and ~ClusterMeltSegmenter().
|
protected |
Definition at line 81 of file ClusterMeltSegmenter.h.
Referenced by extractFeaturesConstQ(), initialise(), and ~ClusterMeltSegmenter().
|
protected |
Definition at line 82 of file ClusterMeltSegmenter.h.
Referenced by extractFeaturesConstQ(), initialise(), segment(), and ~ClusterMeltSegmenter().
|
protected |
Definition at line 83 of file ClusterMeltSegmenter.h.
Referenced by extractFeaturesMFCC(), initialise(), and segment().
|
protected |
Definition at line 84 of file ClusterMeltSegmenter.h.
|
protected |
Definition at line 85 of file ClusterMeltSegmenter.h.
Referenced by segment().
|
protected |
Definition at line 86 of file ClusterMeltSegmenter.h.
|
protected |
Definition at line 88 of file ClusterMeltSegmenter.h.
Referenced by extractFeatures(), initialise(), segment(), and setFeatures().
|
protected |
Definition at line 89 of file ClusterMeltSegmenter.h.
Referenced by getHopsize().
|
protected |
Definition at line 90 of file ClusterMeltSegmenter.h.
Referenced by getWindowsize().
|
protected |
Definition at line 93 of file ClusterMeltSegmenter.h.
Referenced by initialise().
|
protected |
Definition at line 94 of file ClusterMeltSegmenter.h.
Referenced by initialise().
|
protected |
Definition at line 95 of file ClusterMeltSegmenter.h.
Referenced by initialise(), and segment().
|
protected |
Definition at line 96 of file ClusterMeltSegmenter.h.
Referenced by extractFeaturesConstQ(), extractFeaturesMFCC(), initialise(), and segment().
|
protected |
Definition at line 99 of file ClusterMeltSegmenter.h.
|
protected |
Definition at line 102 of file ClusterMeltSegmenter.h.
Referenced by segment().
|
protected |
Definition at line 105 of file ClusterMeltSegmenter.h.
Referenced by makeSegmentation(), and segment().
|
protected |
Definition at line 106 of file ClusterMeltSegmenter.h.
Referenced by segment().
|
protected |
Definition at line 107 of file ClusterMeltSegmenter.h.
Referenced by segment().
|
protected |
Definition at line 109 of file ClusterMeltSegmenter.h.
Referenced by extractFeaturesConstQ(), extractFeaturesMFCC(), initialise(), segment(), and ~ClusterMeltSegmenter().
|
protectedinherited |
Definition at line 55 of file Segmenter.h.
Referenced by extractFeaturesConstQ(), extractFeaturesMFCC(), segment(), and setFeatures().
|
protectedinherited |
Definition at line 56 of file Segmenter.h.
Referenced by makeSegmentation().
|
protectedinherited |
Definition at line 57 of file Segmenter.h.
Referenced by getHopsize(), getWindowsize(), initialise(), and makeSegmentation().
The documentation for this class was generated from the following files:
Generated by 1.8.11