comparison 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
comparison
equal deleted inserted replaced
1058:9a13bc339fa9 1059:e1c2dcc7790e
398 int sx, 398 int sx,
399 int minbin, 399 int minbin,
400 int bincount) const; 400 int bincount) const;
401 401
402 void scaleColumn(std::vector<float> &col) const; 402 void scaleColumn(std::vector<float> &col) const;
403
404 std::vector<float> distributeColumn(const std::vector<float> &in,
405 int h,
406 const std::vector<double> &binfory,
407 int minbin,
408 bool interpolate) const;
409
410 void recordColumnExtents(const std::vector<float> &col,
411 int sx,
412 MagnitudeRange &overallMag,
413 bool &overallMagChanged) const;
414
415 std::vector<float> peakPickColumn(const std::vector<float> &in) const;
416
417 std::vector<float> applyDisplayGain(const std::vector<float> &in) const;
403 418
404 virtual void updateMeasureRectYCoords(LayerGeometryProvider *v, 419 virtual void updateMeasureRectYCoords(LayerGeometryProvider *v,
405 const MeasureRect &r) const; 420 const MeasureRect &r) const;
406 virtual void setMeasureRectYCoord(LayerGeometryProvider *v, 421 virtual void setMeasureRectYCoord(LayerGeometryProvider *v,
407 MeasureRect &r, bool start, int y) const; 422 MeasureRect &r, bool start, int y) const;