comparison src/FeatureExtractor.h @ 38:8cce4e13ede3 refactors

Make use of FeatureExtractor in Matcher
author Chris Cannam
date Thu, 13 Nov 2014 12:50:54 +0000
parents 91410483228b
children b9aa663a607b
comparison
equal deleted inserted replaced
37:91410483228b 38:8cce4e13ede3
105 int getFeatureSize() const { return m_featureSize; } 105 int getFeatureSize() const { return m_featureSize; }
106 106
107 /** 107 /**
108 * Process one frequency-domain audio frame (provided as real & 108 * Process one frequency-domain audio frame (provided as real &
109 * imaginary components from the FFT output). Return a feature 109 * imaginary components from the FFT output). Return a feature
110 * vector of size given by getFeatureSize(). 110 * vector of size given by getFeatureSize(). Input vectors must
111 * have at least params.fftSize/2+1 elements each.
111 * 112 *
112 * Operates by mapping the frequency bins into a part-linear 113 * Operates by mapping the frequency bins into a part-linear
113 * part-logarithmic array, then (optionally) computing the 114 * part-logarithmic array, then (optionally) computing the
114 * half-wave rectified spectral difference from the previous 115 * half-wave rectified spectral difference from the previous
115 * frame, then (optionally) normalising to a sum of 1. 116 * frame, then (optionally) normalising to a sum of 1.