77 static unsigned char To8Bit(
const double d);
79 static short int To16Bit(
const double d);
81 static short unsigned int To16UBit(
const double d);
83 static float To32Bit(
const double d);
86 static double ToDouble(
const unsigned char t);
87 static double ToDouble(
const short int t);
88 static double ToDouble(
const short unsigned int t);
89 static double ToDouble(
const float t);
92 static float ToFloat(
const unsigned char d);
93 static float ToFloat(
const short int d);
94 static float ToFloat(
const short unsigned int d);
95 static float ToFloat(
const double d);
98 static std::string
ToString(
double d);
110 return(d < VALID_MIN8);
133 return(f < VALID_MIN4);
145 return(d >= VALID_MIN8);
165 static inline bool IsNull(
const double d) {
185 static inline bool IsHigh(
const double d) {
186 return(d == HIGH_REPR_SAT8) || (d == HIGH_INSTR_SAT8);
205 static inline bool IsLow(
const double d) {
206 return(d == LOW_REPR_SAT8) || (d == LOW_INSTR_SAT8);
227 static inline bool IsHrs(
const double d) {
228 return(d == HIGH_REPR_SAT8);
247 static inline bool IsHis(
const double d) {
248 return(d == HIGH_INSTR_SAT8);
267 static inline bool IsLis(
const double d) {
268 return(d == LOW_INSTR_SAT8);
287 static inline bool IsLrs(
const double d) {
288 return(d == LOW_REPR_SAT8);
float To32Bit()
Converts internal pixel value to float with special pixel translations.
static bool IsValid(const double d)
Returns true if the input pixel is valid.
virtual ~Pixel()
Default destructor.
bool IsValid()
Returns true if the input pixel is valid.
static bool IsNull(const double d)
Returns true if the input pixel is null.
static bool IsHigh(const double d)
Returns true if the input pixel is one of the high saturation types.
bool IsHis()
Returns true if the input pixel is high instrument saturation.
int m_band
band coordinate of pixel
short int To16Bit()
Converts internal pixel value to a short int pixel with special pixel translations.
bool IsLrs()
Returns true if the input pixel is low representation saturation.
short unsigned int To16Ubit()
Converts internal pixel value to a short int pixel with special pixel translations.
static bool IsHis(const double d)
Returns true if the input pixel is high instrument saturation.
double ToDouble()
Converts stored pixel value to a double.
bool IsNull()
Returns true if the input pixel is null.
int m_sample
sample coordinate of pixel
static bool IsLow(const double d)
Returns true if the input pixel is one of the low saturation types.
static bool IsHrs(const double d)
Returns true if the input pixel is high representation saturation.
unsigned char To8Bit()
Converts internal pixel value to an unsigned char pixel with special pixel translations.
bool IsHigh()
Returns true if the input pixel is one of the high saturation types.
static bool IsSpecial(const float f)
Returns true if the input pixel is special.
static bool IsSpecial(const double d)
Returns true if the input pixel is special.
static bool IsLis(const double d)
Returns true if the input pixel is low instrument saturation.
bool IsHrs()
Returns true if the input pixel is high representation saturation.
int band() const
Returns the band coordinate of the Pixel.
double DN() const
Returns the DN of the Pixel.
bool IsSpecial()
Returns true if the input pixel is special.
int line() const
Returns the line coordinate of the Pixel.
Store and/or manipulate pixel values.
bool IsLow()
Returns true if the input pixel is one of the low saturation types.
static bool IsLrs(const double d)
Returns true if the input pixel is low representation saturation.
static short unsigned int To16UBit(const double d)
Converts double pixels to short unsigned int pixels with special pixel translations.
int m_line
line coordinate of pixel
Pixel()
Constructs an empty Pixel.
bool IsLis()
Returns true if the input pixel is low instrument saturation.
Pixel & operator=(const Pixel &other)
Copy assignment operator.
int sample() const
Returns the sample coordinate of the Pixel.
float ToFloat()
Converts internal pixel value to float with pixel translations and care for overflows (underflows are...
std::string ToString()
Returns the name of the pixel type as a string.