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);
166 static inline bool IsNull(
const double d) {
186 static inline bool IsHigh(
const double d) {
206 static inline bool IsLow(
const double d) {
226 static inline bool IsHrs(
const double d) {
246 static inline bool IsHis(
const double d) {
266 static inline bool IsLis(
const double d) {
286 static inline bool IsLrs(
const double d) {
float To32Bit()
Converts internal pixel value to float with special pixel translations.
Definition: Pixel.cpp:283
static bool IsValid(const double d)
Returns true if the input pixel is valid.
Definition: Pixel.h:145
virtual ~Pixel()
Default destructor.
Definition: Pixel.cpp:92
bool IsValid()
Returns true if the input pixel is valid.
Definition: Pixel.h:155
static bool IsNull(const double d)
Returns true if the input pixel is null.
Definition: Pixel.h:166
static bool IsHigh(const double d)
Returns true if the input pixel is one of the high saturation types.
Definition: Pixel.h:186
bool IsHis()
Returns true if the input pixel is high instrument saturation.
Definition: Pixel.h:255
short int To16Bit()
Converts internal pixel value to a short int pixel with special pixel translations.
Definition: Pixel.cpp:205
bool IsLrs()
Returns true if the input pixel is low representation saturation.
Definition: Pixel.h:295
short unsigned int To16Ubit()
Converts internal pixel value to a short int pixel with special pixel translations.
Definition: Pixel.cpp:253
static bool IsHis(const double d)
Returns true if the input pixel is high instrument saturation.
Definition: Pixel.h:246
double ToDouble()
Converts stored pixel value to a double.
Definition: Pixel.cpp:375
const double NULL8
Definition: SpecialPixel.h:109
bool IsNull()
Returns true if the input pixel is null.
Definition: Pixel.h:175
static bool IsLow(const double d)
Returns true if the input pixel is one of the low saturation types.
Definition: Pixel.h:206
static bool IsHrs(const double d)
Returns true if the input pixel is high representation saturation.
Definition: Pixel.h:226
unsigned char To8Bit()
Converts internal pixel value to an unsigned char pixel with special pixel translations.
Definition: Pixel.cpp:156
int sample() const
Definition: Pixel.cpp:102
bool IsHigh()
Returns true if the input pixel is one of the high saturation types.
Definition: Pixel.h:195
const double LOW_REPR_SAT8
Definition: SpecialPixel.h:113
static bool IsSpecial(const float f)
Returns true if the input pixel is special.
Definition: Pixel.h:133
const double HIGH_INSTR_SAT8
Definition: SpecialPixel.h:125
static bool IsSpecial(const double d)
Returns true if the input pixel is special.
Definition: Pixel.h:110
static bool IsLis(const double d)
Returns true if the input pixel is low instrument saturation.
Definition: Pixel.h:266
bool IsHrs()
Returns true if the input pixel is high representation saturation.
Definition: Pixel.h:235
const double HIGH_REPR_SAT8
Definition: SpecialPixel.h:131
const float VALID_MIN4
Definition: SpecialPixel.h:145
bool IsSpecial()
Returns true if the input pixel is special.
Definition: Pixel.h:120
Store and/or manipulate pixel values.
Definition: Pixel.h:63
const double VALID_MIN8
Definition: SpecialPixel.h:101
int band() const
Definition: Pixel.cpp:108
bool IsLow()
Returns true if the input pixel is one of the low saturation types.
Definition: Pixel.h:215
static bool IsLrs(const double d)
Returns true if the input pixel is low representation saturation.
Definition: Pixel.h:286
const double LOW_INSTR_SAT8
Definition: SpecialPixel.h:119
int line() const
Definition: Pixel.cpp:96
double DN() const
Definition: Pixel.cpp:114
Namespace for ISIS/Bullet specific routines.
Definition: Apollo.h:31
static short unsigned int To16UBit(const double d)
Converts double pixels to short unsigned int pixels with special pixel translations.
Definition: Pixel.cpp:216
Pixel()
Constructs an empty Pixel.
Definition: Pixel.cpp:34
bool IsLis()
Returns true if the input pixel is low instrument saturation.
Definition: Pixel.h:275
Pixel & operator=(const Pixel &other)
Copy assignment operator.
Definition: Pixel.cpp:82
float ToFloat()
Converts internal pixel value to float with pixel translations and care for overflows (underflows are...
Definition: Pixel.cpp:473
std::string ToString()
Returns the name of the pixel type as a string.
Definition: Pixel.cpp:504