1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
// Copyright (C) 1999-2018
// Smithsonian Astrophysical Observatory, Cambridge, MA, USA
// For conditions of distribution and use, see copyright notice in "copyright"
#ifndef __colorscalergb_h__
#define __colorscalergb_h__
#include "util.h"
class ColorScaleRGB {
protected:
int size_;
unsigned char* psColors_;
public:
ColorScaleRGB(int);
virtual ~ColorScaleRGB();
int size() {return size_;}
const unsigned char* psColors() {return psColors_;}
};
class LinearScaleRGB : public virtual ColorScaleRGB {
public:
LinearScaleRGB(int, int, unsigned char*, int);
};
class LogScaleRGB : public virtual ColorScaleRGB {
public:
LogScaleRGB(int, int, unsigned char*, int, double);
};
class PowScaleRGB : public virtual ColorScaleRGB {
public:
PowScaleRGB(int, int, unsigned char*, int, double);
};
class SqrtScaleRGB : public virtual ColorScaleRGB {
public:
SqrtScaleRGB(int, int, unsigned char*, int);
};
class SquaredScaleRGB : public virtual ColorScaleRGB {
public:
SquaredScaleRGB(int, int, unsigned char*, int);
};
class AsinhScaleRGB : public virtual ColorScaleRGB {
public:
AsinhScaleRGB(int, int, unsigned char*, int);
};
class SinhScaleRGB : public virtual ColorScaleRGB {
public:
SinhScaleRGB(int, int, unsigned char*, int);
};
class HistEquScaleRGB : public virtual ColorScaleRGB {
public:
HistEquScaleRGB(int, int, unsigned char*, int, double*, int);
};
#endif
|