Mercurial > hg > svgui
diff layer/SpectrogramLayer.h @ 1059:e1c2dcc7790e spectrogram-minor-refactor
A couple more helper functions
author | Chris Cannam |
---|---|
date | Wed, 15 Jun 2016 08:52:07 +0100 |
parents | 9a13bc339fa9 |
children | 5eb4d79334b9 |
line wrap: on
line diff
--- a/layer/SpectrogramLayer.h Mon Jun 13 16:17:44 2016 +0100 +++ b/layer/SpectrogramLayer.h Wed Jun 15 08:52:07 2016 +0100 @@ -400,6 +400,21 @@ int bincount) const; void scaleColumn(std::vector<float> &col) const; + + std::vector<float> distributeColumn(const std::vector<float> &in, + int h, + const std::vector<double> &binfory, + int minbin, + bool interpolate) const; + + void recordColumnExtents(const std::vector<float> &col, + int sx, + MagnitudeRange &overallMag, + bool &overallMagChanged) const; + + std::vector<float> peakPickColumn(const std::vector<float> &in) const; + + std::vector<float> applyDisplayGain(const std::vector<float> &in) const; virtual void updateMeasureRectYCoords(LayerGeometryProvider *v, const MeasureRect &r) const;