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);
165 static inline bool IsNull(
const double d) {
185 static inline bool IsHigh(
const double d) {
205 static inline bool IsLow(
const double d) {
227 static inline bool IsHrs(
const double d) {
247 static inline bool IsHis(
const double d) {
267 static inline bool IsLis(
const double d) {
287 static inline bool IsLrs(
const double d) {
float To32Bit()
Converts internal pixel value to float with special pixel translations.
Definition: Pixel.cpp:277
static bool IsValid(const double d)
Returns true if the input pixel is valid.
Definition: Pixel.h:144
virtual ~Pixel()
Default destructor.
Definition: Pixel.cpp:86
bool IsValid()
Returns true if the input pixel is valid.
Definition: Pixel.h:154
static bool IsNull(const double d)
Returns true if the input pixel is null.
Definition: Pixel.h:165
static bool IsHigh(const double d)
Returns true if the input pixel is one of the high saturation types.
Definition: Pixel.h:185
bool IsHis()
Returns true if the input pixel is high instrument saturation.
Definition: Pixel.h:256
short int To16Bit()
Converts internal pixel value to a short int pixel with special pixel translations.
Definition: Pixel.cpp:199
bool IsLrs()
Returns true if the input pixel is low representation saturation.
Definition: Pixel.h:296
short unsigned int To16Ubit()
Converts internal pixel value to a short int pixel with special pixel translations.
Definition: Pixel.cpp:247
static bool IsHis(const double d)
Returns true if the input pixel is high instrument saturation.
Definition: Pixel.h:247
double ToDouble()
Converts stored pixel value to a double.
Definition: Pixel.cpp:369
const double NULL8
Definition: SpecialPixel.h:108
bool IsNull()
Returns true if the input pixel is null.
Definition: Pixel.h:174
static bool IsLow(const double d)
Returns true if the input pixel is one of the low saturation types.
Definition: Pixel.h:205
static bool IsHrs(const double d)
Returns true if the input pixel is high representation saturation.
Definition: Pixel.h:227
unsigned char To8Bit()
Converts internal pixel value to an unsigned char pixel with special pixel translations.
Definition: Pixel.cpp:150
bool IsHigh()
Returns true if the input pixel is one of the high saturation types.
Definition: Pixel.h:194
const double LOW_REPR_SAT8
Definition: SpecialPixel.h:112
static bool IsSpecial(const float f)
Returns true if the input pixel is special.
Definition: Pixel.h:132
const double HIGH_INSTR_SAT8
Definition: SpecialPixel.h:124
static bool IsSpecial(const double d)
Returns true if the input pixel is special.
Definition: Pixel.h:109
static bool IsLis(const double d)
Returns true if the input pixel is low instrument saturation.
Definition: Pixel.h:267
bool IsHrs()
Returns true if the input pixel is high representation saturation.
Definition: Pixel.h:236
int band() const
Returns the band coordinate of the Pixel.
Definition: Pixel.cpp:102
double DN() const
Returns the DN of the Pixel.
Definition: Pixel.cpp:108
const double HIGH_REPR_SAT8
Definition: SpecialPixel.h:130
const float VALID_MIN4
Definition: SpecialPixel.h:144
bool IsSpecial()
Returns true if the input pixel is special.
Definition: Pixel.h:119
int line() const
Returns the line coordinate of the Pixel.
Definition: Pixel.cpp:90
Store and/or manipulate pixel values.
Definition: Pixel.h:63
const double VALID_MIN8
Definition: SpecialPixel.h:100
bool IsLow()
Returns true if the input pixel is one of the low saturation types.
Definition: Pixel.h:216
static bool IsLrs(const double d)
Returns true if the input pixel is low representation saturation.
Definition: Pixel.h:287
const double LOW_INSTR_SAT8
Definition: SpecialPixel.h:118
static short unsigned int To16UBit(const double d)
Converts double pixels to short unsigned int pixels with special pixel translations.
Definition: Pixel.cpp:210
Pixel()
Constructs an empty Pixel.
Definition: Pixel.cpp:34
bool IsLis()
Returns true if the input pixel is low instrument saturation.
Definition: Pixel.h:276
Pixel & operator=(const Pixel &other)
Copy assignment operator.
Definition: Pixel.cpp:76
int sample() const
Returns the sample coordinate of the Pixel.
Definition: Pixel.cpp:96
float ToFloat()
Converts internal pixel value to float with pixel translations and care for overflows (underflows are...
Definition: Pixel.cpp:467
std::string ToString()
Returns the name of the pixel type as a string.
Definition: Pixel.cpp:498