Mercurial > hg > svgui
diff layer/ColourScale.cpp @ 1143:c53ed1a6fcbd spectrogram-minor-refactor
Fixes to phase display and colour scale for it; tidy up some debug output
author | Chris Cannam |
---|---|
date | Fri, 05 Aug 2016 14:31:16 +0100 |
parents | 998e31e92dbe |
children | 822edd9bb665 |
line wrap: on
line diff
--- a/layer/ColourScale.cpp Fri Aug 05 14:00:58 2016 +0100 +++ b/layer/ColourScale.cpp Fri Aug 05 14:31:16 2016 +0100 @@ -89,12 +89,11 @@ if (m_params.scaleType == ColourScaleType::Phase) { double half = (maxPixF - 1.f) / 2.f; int pixel = 1 + int((value * half) / M_PI + half); +// cerr << "phase = " << value << " pixel = " << pixel << endl; return pixel; } value *= m_params.gain; - -// value = pow(value, m_params.multiple); if (value < m_params.threshold) return 0;