comparison layer/ColourMapper.cpp @ 1014:6338d7dc3b6d colourschemes

Remove debug out
author Chris Cannam
date Tue, 19 Jan 2016 13:02:32 +0000
parents ac69043f82b6
children 352fa17af9f0
comparison
equal deleted inserted replaced
1013:ac69043f82b6 1014:6338d7dc3b6d
49 double prop0 = (base + 1.0) - m, prop1 = m - base; 49 double prop0 = (base + 1.0) - m, prop1 = m - base;
50 QColor c0(colours[base]), c1(colours[base+1]); 50 QColor c0(colours[base]), c1(colours[base+1]);
51 r = c0.redF() * prop0 + c1.redF() * prop1; 51 r = c0.redF() * prop0 + c1.redF() * prop1;
52 g = c0.greenF() * prop0 + c1.greenF() * prop1; 52 g = c0.greenF() * prop0 + c1.greenF() * prop1;
53 b = c0.blueF() * prop0 + c1.blueF() * prop1; 53 b = c0.blueF() * prop0 + c1.blueF() * prop1;
54 cerr << "mapDiscrete: norm " << norm << " -> " << r << "," << g << "," << b << endl;
55 } 54 }
56 55
57 ColourMapper::ColourMapper(int map, double min, double max) : 56 ColourMapper::ColourMapper(int map, double min, double max) :
58 QObject(), 57 QObject(),
59 m_map(map), 58 m_map(map),