|
Isis Developer Reference
|
Go to the documentation of this file.
63 static unsigned char To8Bit(
const double d);
65 static short int To16Bit(
const double d);
67 static short unsigned int To16UBit(
const double d);
69 static float To32Bit(
const double d);
72 static double ToDouble(
const unsigned char t);
73 static double ToDouble(
const short int t);
74 static double ToDouble(
const short unsigned int t);
75 static double ToDouble(
const float t);
78 static float ToFloat(
const unsigned char d);
79 static float ToFloat(
const short int d);
80 static float ToFloat(
const short unsigned int d);
81 static float ToFloat(
const double d);
84 static std::string
ToString(
double d);
151 static inline bool IsNull(
const double d) {
171 static inline bool IsHigh(
const double d) {
191 static inline bool IsLow(
const double d) {
211 static inline bool IsHrs(
const double d) {
231 static inline bool IsHis(
const double d) {
251 static inline bool IsLis(
const double d) {
271 static inline bool IsLrs(
const double d) {
const short LOW_INSTR_SAT2
Definition: SpecialPixel.h:156
bool IsLrs()
Returns true if the input pixel is low representation saturation.
Definition: Pixel.h:280
const float VALID_MAX4
Definition: SpecialPixel.h:149
QString ToString(const T &value)
Helper function to convert values to strings.
Definition: HiCalUtil.h:246
static short unsigned int To16UBit(const double d)
Converts double pixels to short unsigned int pixels with special pixel translations.
Definition: Pixel.cpp:200
const double VALID_MAX8
Definition: SpecialPixel.h:121
double ToDouble()
Converts stored pixel value to a double.
Definition: Pixel.cpp:359
Pixel()
Constructs an empty Pixel.
Definition: Pixel.cpp:18
const unsigned short LOW_INSTR_SATU2
Definition: SpecialPixel.h:165
const unsigned short HIGH_REPR_SATU2
Definition: SpecialPixel.h:167
const float LOW_REPR_SAT4
Definition: SpecialPixel.h:137
const float LOW_INSTR_SAT4
Definition: SpecialPixel.h:140
Pixel & operator=(const Pixel &other)
Copy assignment operator.
Definition: Pixel.cpp:66
const unsigned char VALID_MIN1
Definition: SpecialPixel.h:181
bool IsLis()
Returns true if the input pixel is low instrument saturation.
Definition: Pixel.h:260
static bool IsHis(const double d)
Returns true if the input pixel is high instrument saturation.
Definition: Pixel.h:231
const unsigned char NULL1
Definition: SpecialPixel.h:182
virtual ~Pixel()
Default destructor.
Definition: Pixel.cpp:76
static bool IsHrs(const double d)
Returns true if the input pixel is high representation saturation.
Definition: Pixel.h:211
const unsigned char LOW_INSTR_SAT1
Definition: SpecialPixel.h:184
const unsigned short LOW_REPR_SATU2
Definition: SpecialPixel.h:164
static bool IsLis(const double d)
Returns true if the input pixel is low instrument saturation.
Definition: Pixel.h:251
const double HIGH_REPR_SAT8
Definition: SpecialPixel.h:116
static bool IsSpecial(const double d)
Returns true if the input pixel is special.
Definition: Pixel.h:95
bool IsSpecial(const double d)
Returns if the input pixel is special.
Definition: SpecialPixel.h:197
float ToFloat()
Converts internal pixel value to float with pixel translations and care for overflows (underflows are...
Definition: Pixel.cpp:457
static bool IsSpecial(const float f)
Returns true if the input pixel is special.
Definition: Pixel.h:118
const short VALID_MAX2
Definition: SpecialPixel.h:159
const unsigned char LOW_REPR_SAT1
Definition: SpecialPixel.h:183
const short VALID_MIN2
Definition: SpecialPixel.h:153
short unsigned int To16Ubit()
Converts internal pixel value to a short int pixel with special pixel translations.
Definition: Pixel.cpp:237
bool IsSpecial()
Returns true if the input pixel is special.
Definition: Pixel.h:105
const float HIGH_REPR_SAT4
Definition: SpecialPixel.h:146
const double VALID_MIN8
Definition: SpecialPixel.h:86
const unsigned char HIGH_INSTR_SAT1
Definition: SpecialPixel.h:185
int band() const
Definition: Pixel.cpp:92
static bool IsHigh(const double d)
Returns true if the input pixel is one of the high saturation types.
Definition: Pixel.h:171
const short HIGH_REPR_SAT2
Definition: SpecialPixel.h:158
const double NULL8
Definition: SpecialPixel.h:94
static bool IsLow(const double d)
Returns true if the input pixel is one of the low saturation types.
Definition: Pixel.h:191
const short HIGH_INSTR_SAT2
Definition: SpecialPixel.h:157
bool IsLow()
Returns true if the input pixel is one of the low saturation types.
Definition: Pixel.h:200
std::string ToString()
Returns the name of the pixel type as a string.
Definition: Pixel.cpp:488
const double HIGH_INSTR_SAT8
Definition: SpecialPixel.h:110
unsigned char To8Bit()
Converts internal pixel value to an unsigned char pixel with special pixel translations.
Definition: Pixel.cpp:140
const float HIGH_INSTR_SAT4
Definition: SpecialPixel.h:143
const short NULL2
Definition: SpecialPixel.h:154
const unsigned short NULLU2
Definition: SpecialPixel.h:163
const double Null
Value for an Isis Null pixel.
Definition: SpecialPixel.h:95
const unsigned short VALID_MAXU2
Definition: SpecialPixel.h:168
float To32Bit()
Converts internal pixel value to float with special pixel translations.
Definition: Pixel.cpp:267
int line() const
Definition: Pixel.cpp:80
double ToDouble(const T &value)
Helper function to convert values to doubles.
Definition: HiCalUtil.h:234
double DN() const
Definition: Pixel.cpp:98
Namespace for the standard library.
const float NULL4
Definition: SpecialPixel.h:134
Store and/or manipulate pixel values.
Definition: Pixel.h:48
static bool IsNull(const double d)
Returns true if the input pixel is null.
Definition: Pixel.h:151
int sample() const
Definition: Pixel.cpp:86
const float VALID_MIN4
Definition: SpecialPixel.h:130
static bool IsLrs(const double d)
Returns true if the input pixel is low representation saturation.
Definition: Pixel.h:271
const unsigned short HIGH_INSTR_SATU2
Definition: SpecialPixel.h:166
const unsigned short VALID_MINU2
Definition: SpecialPixel.h:162
const unsigned char VALID_MAX1
Definition: SpecialPixel.h:187
short int To16Bit()
Converts internal pixel value to a short int pixel with special pixel translations.
Definition: Pixel.cpp:189
const double LOW_REPR_SAT8
Definition: SpecialPixel.h:98
const unsigned char HIGH_REPR_SAT1
Definition: SpecialPixel.h:186
bool IsValid()
Returns true if the input pixel is valid.
Definition: Pixel.h:140
bool IsHis()
Returns true if the input pixel is high instrument saturation.
Definition: Pixel.h:240
const double LOW_INSTR_SAT8
Definition: SpecialPixel.h:104
const short LOW_REPR_SAT2
Definition: SpecialPixel.h:155
bool IsNull()
Returns true if the input pixel is null.
Definition: Pixel.h:160
static bool IsValid(const double d)
Returns true if the input pixel is valid.
Definition: Pixel.h:130
This is free and unencumbered software released into the public domain.
Definition: Apollo.h:16
bool IsHigh()
Returns true if the input pixel is one of the high saturation types.
Definition: Pixel.h:180
bool IsHrs()
Returns true if the input pixel is high representation saturation.
Definition: Pixel.h:220