#include <ClusterMeltSegmenter.h>

Inheritance diagram for ClusterMeltSegmenter:
Inheritance graph

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 SegmentationgetSegmentation () 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
 
FFTRealfft
 
ConstantQconstq
 
MFCCmfcc
 
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
 
Decimatordecimator
 
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.

ClusterMeltSegmenter::~ClusterMeltSegmenter ( )
virtual

Definition at line 115 of file ClusterMeltSegmenter.cpp.

References constq, decimator, fft, and window.

Member Function Documentation

int ClusterMeltSegmenter::getWindowsize ( )
virtual

Implements Segmenter.

Definition at line 124 of file ClusterMeltSegmenter.cpp.

References Segmenter::samplerate, and windowSize.

Referenced by extractFeaturesConstQ(), extractFeaturesMFCC(), and initialise().

int ClusterMeltSegmenter::getHopsize ( )
virtual

Implements Segmenter.

Definition at line 130 of file ClusterMeltSegmenter.cpp.

References hopSize, and Segmenter::samplerate.

Referenced by makeSegmentation().

void ClusterMeltSegmenter::extractFeatures ( const double *  samples,
int  nsamples 
)
virtual
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.

void ClusterMeltSegmenter::segment ( int  m)
virtual

Implements Segmenter.

Definition at line 313 of file ClusterMeltSegmenter.cpp.

References nclusters, and segment().

int ClusterMeltSegmenter::getNSegmentTypes ( )
inline

Definition at line 72 of file ClusterMeltSegmenter.h.

References ClusterMeltSegmenterParams::nclusters.

void ClusterMeltSegmenter::makeSegmentation ( int *  q,
int  len 
)
protected
void ClusterMeltSegmenter::extractFeaturesConstQ ( const double *  samples,
int  nsamples 
)
protected
void ClusterMeltSegmenter::extractFeaturesMFCC ( const double *  samples,
int  nsamples 
)
protected
virtual void Segmenter::clear ( )
inlinevirtualinherited

Definition at line 52 of file Segmenter.h.

Referenced by segment().

const Segmentation& Segmenter::getSegmentation ( ) const
inlineinherited

Definition at line 53 of file Segmenter.h.

Member Data Documentation

Window<double>* ClusterMeltSegmenter::window
protected

Definition at line 80 of file ClusterMeltSegmenter.h.

Referenced by extractFeaturesConstQ(), and ~ClusterMeltSegmenter().

FFTReal* ClusterMeltSegmenter::fft
protected

Definition at line 81 of file ClusterMeltSegmenter.h.

Referenced by extractFeaturesConstQ(), initialise(), and ~ClusterMeltSegmenter().

ConstantQ* ClusterMeltSegmenter::constq
protected
MFCC* ClusterMeltSegmenter::mfcc
protected

Definition at line 83 of file ClusterMeltSegmenter.h.

Referenced by extractFeaturesMFCC(), initialise(), and segment().

model_t* ClusterMeltSegmenter::model
protected

Definition at line 84 of file ClusterMeltSegmenter.h.

int* ClusterMeltSegmenter::q
protected

Definition at line 85 of file ClusterMeltSegmenter.h.

Referenced by segment().

std::vector<std::vector<double> > ClusterMeltSegmenter::histograms
protected

Definition at line 86 of file ClusterMeltSegmenter.h.

feature_types ClusterMeltSegmenter::featureType
protected

Definition at line 88 of file ClusterMeltSegmenter.h.

Referenced by extractFeatures(), initialise(), segment(), and setFeatures().

double ClusterMeltSegmenter::hopSize
protected

Definition at line 89 of file ClusterMeltSegmenter.h.

Referenced by getHopsize().

double ClusterMeltSegmenter::windowSize
protected

Definition at line 90 of file ClusterMeltSegmenter.h.

Referenced by getWindowsize().

int ClusterMeltSegmenter::fmin
protected

Definition at line 93 of file ClusterMeltSegmenter.h.

Referenced by initialise().

int ClusterMeltSegmenter::fmax
protected

Definition at line 94 of file ClusterMeltSegmenter.h.

Referenced by initialise().

int ClusterMeltSegmenter::nbins
protected

Definition at line 95 of file ClusterMeltSegmenter.h.

Referenced by initialise(), and segment().

int ClusterMeltSegmenter::ncoeff
protected
int ClusterMeltSegmenter::ncomponents
protected

Definition at line 99 of file ClusterMeltSegmenter.h.

int ClusterMeltSegmenter::nHMMStates
protected

Definition at line 102 of file ClusterMeltSegmenter.h.

Referenced by segment().

int ClusterMeltSegmenter::nclusters
protected

Definition at line 105 of file ClusterMeltSegmenter.h.

Referenced by makeSegmentation(), and segment().

int ClusterMeltSegmenter::histogramLength
protected

Definition at line 106 of file ClusterMeltSegmenter.h.

Referenced by segment().

int ClusterMeltSegmenter::neighbourhoodLimit
protected

Definition at line 107 of file ClusterMeltSegmenter.h.

Referenced by segment().

Decimator* ClusterMeltSegmenter::decimator
protected
std::vector<std::vector<double> > Segmenter::features
protectedinherited

Definition at line 55 of file Segmenter.h.

Referenced by extractFeaturesConstQ(), extractFeaturesMFCC(), segment(), and setFeatures().

Segmentation Segmenter::segmentation
protectedinherited

Definition at line 56 of file Segmenter.h.

Referenced by makeSegmentation().

int Segmenter::samplerate
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: