78 static unsigned char To8Bit(
const double d);
80 static short int To16Bit(
const double d);
82 static short unsigned int To16UBit(
const double d);
84 static float To32Bit(
const double d);
87 static double ToDouble(
const unsigned char t);
88 static double ToDouble(
const short int t);
89 static double ToDouble(
const short unsigned int t);
90 static double ToDouble(
const float t);
93 static float ToFloat(
const unsigned char d);
94 static float ToFloat(
const short int d);
95 static float ToFloat(
const short unsigned int d);
96 static float ToFloat(
const double d);
99 static std::string
ToString(
double d);
111 return(d < VALID_MIN8);
134 return(f < VALID_MIN4);
146 return(d >= VALID_MIN8);
166 static inline bool IsNull(
const double d) {
186 static inline bool IsHigh(
const double d) {
187 return(d == HIGH_REPR_SAT8) || (d == HIGH_INSTR_SAT8);
206 static inline bool IsLow(
const double d) {
207 return(d == LOW_REPR_SAT8) || (d == LOW_INSTR_SAT8);
226 static inline bool IsHrs(
const double d) {
227 return(d == HIGH_REPR_SAT8);
246 static inline bool IsHis(
const double d) {
247 return(d == HIGH_INSTR_SAT8);
266 static inline bool IsLis(
const double d) {
267 return(d == LOW_INSTR_SAT8);
286 static inline bool IsLrs(
const double d) {
287 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.
bool IsSpecial()
Returns true if the input pixel is special.
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.
Namespace for ISIS/Bullet specific routines.
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.
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.