comparison layer/ColourScale.h @ 1374:631897ba9fca zoom

Merge from default branch
author Chris Cannam
date Tue, 06 Nov 2018 08:59:03 +0000
parents d79e21855aef
children
comparison
equal deleted inserted replaced
1360:e848ea0850fe 1374:631897ba9fca
34 class ColourScale 34 class ColourScale
35 { 35 {
36 public: 36 public:
37 struct Parameters { 37 struct Parameters {
38 Parameters() : colourMap(0), scaleType(ColourScaleType::Linear), 38 Parameters() : colourMap(0), scaleType(ColourScaleType::Linear),
39 minValue(0.0), maxValue(1.0), 39 minValue(0.0), maxValue(1.0), inverted(false),
40 threshold(0.0), gain(1.0), multiple(1.0) { } 40 threshold(0.0), gain(1.0), multiple(1.0) { }
41 41
42 /** A colour map index as used by ColourMapper */ 42 /** A colour map index as used by ColourMapper */
43 int colourMap; 43 int colourMap;
44 44
48 /** Minimum value in source range */ 48 /** Minimum value in source range */
49 double minValue; 49 double minValue;
50 50
51 /** Maximum value in source range. Must be > minValue */ 51 /** Maximum value in source range. Must be > minValue */
52 double maxValue; 52 double maxValue;
53
54 /** Whether the colour scale should be mapped inverted */
55 bool inverted;
53 56
54 /** Threshold below which every value is mapped to background 57 /** Threshold below which every value is mapped to background
55 pixel 0 */ 58 pixel 0 */
56 double threshold; 59 double threshold;
57 60