![]() |
Isis 3 Programmer Reference
|
Stores information about a "Spectral pixel" or spectel. More...
#include <Spectel.h>
Public Member Functions | |
Spectel () | |
Constructs an empty Spectel. More... | |
Spectel (int sample, int line, int band, double DN, double center, double width) | |
Constructs a Spectel using its l,s,b coordinates, its DN value, and its wavelength. More... | |
Spectel (Pixel pixel, double center, double width) | |
Constructs a Spectel, given a Pixel, center wavelength, and width. More... | |
Spectel (const Spectel &spectel) | |
Constructs a Spectel, given a Spectel. More... | |
virtual | ~Spectel () |
Default destructor. More... | |
Spectel & | operator= (const Spectel &other) |
Copy assignment operator. More... | |
double | centerWavelength () const |
Gets central wavelength of spectel. More... | |
double | filterWidth () const |
Gets wavelength width associated with spectel. More... | |
int | line () const |
int | sample () const |
int | band () const |
double | DN () const |
unsigned char | To8Bit () |
Converts internal pixel value to an unsigned char pixel with special pixel translations. More... | |
short int | To16Bit () |
Converts internal pixel value to a short int pixel with special pixel translations. More... | |
short unsigned int | To16Ubit () |
Converts internal pixel value to a short int pixel with special pixel translations. More... | |
float | To32Bit () |
Converts internal pixel value to float with special pixel translations. More... | |
double | ToDouble () |
Converts stored pixel value to a double. More... | |
float | ToFloat () |
Converts internal pixel value to float with pixel translations and care for overflows (underflows are assumed to cast to 0!) More... | |
std::string | ToString () |
Returns the name of the pixel type as a string. More... | |
bool | IsSpecial () |
Returns true if the input pixel is special. More... | |
bool | IsValid () |
Returns true if the input pixel is valid. More... | |
bool | IsNull () |
Returns true if the input pixel is null. More... | |
bool | IsHigh () |
Returns true if the input pixel is one of the high saturation types. More... | |
bool | IsLow () |
Returns true if the input pixel is one of the low saturation types. More... | |
bool | IsHrs () |
Returns true if the input pixel is high representation saturation. More... | |
bool | IsHis () |
Returns true if the input pixel is high instrument saturation. More... | |
bool | IsLis () |
Returns true if the input pixel is low instrument saturation. More... | |
bool | IsLrs () |
Returns true if the input pixel is low representation saturation. More... | |
Static Public Member Functions | |
static unsigned char | To8Bit (const double d) |
Converts double pixels to unsigned char pixels with special pixel translations. More... | |
static short int | To16Bit (const double d) |
Converts double pixels to short int pixels with special pixel translations. More... | |
static short unsigned int | To16UBit (const double d) |
Converts double pixels to short unsigned int pixels with special pixel translations. More... | |
static float | To32Bit (const double d) |
Converts double pixels to float pixels with special pixel translations. More... | |
static double | ToDouble (const unsigned char t) |
Converts unsigned char pixels to double pixels with special pixel translations. More... | |
static double | ToDouble (const short int t) |
Converts short int pixels to double pixels with special pixel translations. More... | |
static double | ToDouble (const short unsigned int t) |
Converts short unsigned int pixels to double pixels with special pixel translations. More... | |
static double | ToDouble (const float t) |
Converts float pixels to double pixels with special pixel translations. More... | |
static float | ToFloat (const unsigned char d) |
Converts unsigned char to float with pixel translations and care for overflows (underflows are assumed to cast to 0!) More... | |
static float | ToFloat (const short int d) |
Converts short int to float with pixel translations and care for overflows (underflows are assumed to cast to 0!) More... | |
static float | ToFloat (const short unsigned int d) |
Converts short unsigned int to float with pixel translations and care for overflows (underflows are assumed to cast to 0!) More... | |
static float | ToFloat (const double d) |
Converts double to float with pixel translations and care for overflows (underflows are assumed to cast to 0!) More... | |
static std::string | ToString (double d) |
Takes a double pixel value and returns the name of the pixel type as a string. More... | |
static bool | IsSpecial (const double d) |
Returns true if the input pixel is special. More... | |
static bool | IsSpecial (const float f) |
Returns true if the input pixel is special. More... | |
static bool | IsValid (const double d) |
Returns true if the input pixel is valid. More... | |
static bool | IsNull (const double d) |
Returns true if the input pixel is null. More... | |
static bool | IsHigh (const double d) |
Returns true if the input pixel is one of the high saturation types. More... | |
static bool | IsLow (const double d) |
Returns true if the input pixel is one of the low saturation types. More... | |
static bool | IsHrs (const double d) |
Returns true if the input pixel is high representation saturation. More... | |
static bool | IsHis (const double d) |
Returns true if the input pixel is high instrument saturation. More... | |
static bool | IsLis (const double d) |
Returns true if the input pixel is low instrument saturation. More... | |
static bool | IsLrs (const double d) |
Returns true if the input pixel is low representation saturation. More... | |
Private Attributes | |
double | m_center |
Center wavelength associated with pixel. More... | |
double | m_width |
Wavelength width (FWHM) associated with pixel. More... | |
Stores information about a "Spectral pixel" or spectel.
Isis::Spectel::Spectel | ( | ) |
Constructs an empty Spectel.
Definition at line 34 of file Spectel.cpp.
References m_center, m_width, and Isis::Null.
Isis::Spectel::Spectel | ( | int | sample, |
int | line, | ||
int | band, | ||
double | DN, | ||
double | center, | ||
double | width | ||
) |
Constructs a Spectel using its l,s,b coordinates, its DN value, and its wavelength.
line | spectel line coordinate |
sample | spectel sample coordinate |
band | spectel band coordinate |
DN | spectel value |
center | center wavelength of spectel |
width | wavelength width of spectel |
Definition at line 54 of file Spectel.cpp.
Isis::Spectel::Spectel | ( | Pixel | pixel, |
double | center, | ||
double | width | ||
) |
Isis::Spectel::Spectel | ( | const Spectel & | spectel | ) |
Constructs a Spectel, given a Spectel.
spectel | Spectel to copy |
Definition at line 83 of file Spectel.cpp.
References centerWavelength(), filterWidth(), m_center, and m_width.
|
virtual |
Default destructor.
Definition at line 91 of file Spectel.cpp.
|
inherited |
Definition at line 108 of file Pixel.cpp.
Referenced by Isis::Pixel::operator=(), and Isis::Pixel::Pixel().
double Isis::Spectel::centerWavelength | ( | ) | const |
Gets central wavelength of spectel.
Definition at line 111 of file Spectel.cpp.
References m_center.
Referenced by Isis::SpectralDefinition1D::findSpectel(), operator=(), Spectel(), and Isis::SpectralDefinition2D::toString().
|
inherited |
Definition at line 114 of file Pixel.cpp.
Referenced by Isis::Pixel::operator=(), and Isis::Pixel::Pixel().
double Isis::Spectel::filterWidth | ( | ) | const |
Gets wavelength width associated with spectel.
Definition at line 123 of file Spectel.cpp.
References m_width.
Referenced by operator=(), Spectel(), and Isis::SpectralDefinition2D::toString().
|
inlinestaticinherited |
|
inlineinherited |
Returns true if the input pixel is one of the high saturation types.
Definition at line 195 of file Pixel.h.
References Isis::Pixel::m_DN.
|
inlinestaticinherited |
|
inlineinherited |
Returns true if the input pixel is high instrument saturation.
Definition at line 255 of file Pixel.h.
References Isis::Pixel::m_DN.
|
inlinestaticinherited |
|
inlineinherited |
Returns true if the input pixel is high representation saturation.
Definition at line 235 of file Pixel.h.
References Isis::Pixel::m_DN.
|
inlinestaticinherited |
|
inlineinherited |
Returns true if the input pixel is low instrument saturation.
Definition at line 275 of file Pixel.h.
References Isis::Pixel::m_DN.
|
inlinestaticinherited |
|
inlineinherited |
Returns true if the input pixel is one of the low saturation types.
Definition at line 215 of file Pixel.h.
References Isis::Pixel::m_DN.
|
inlinestaticinherited |
|
inlineinherited |
Returns true if the input pixel is low representation saturation.
Definition at line 295 of file Pixel.h.
References Isis::Pixel::m_DN.
|
inlinestaticinherited |
|
inlineinherited |
Returns true if the input pixel is null.
Definition at line 175 of file Pixel.h.
References Isis::Pixel::m_DN.
|
inlinestaticinherited |
|
inlineinherited |
Returns true if the input pixel is special.
Not special implies it is valid to use in computations.
Definition at line 120 of file Pixel.h.
References Isis::Pixel::m_DN.
|
inlinestaticinherited |
|
inlinestaticinherited |
|
inlineinherited |
Returns true if the input pixel is valid.
Valid implies the pixel is neither hrs, lrs, his, lis, nor null.
Definition at line 155 of file Pixel.h.
References Isis::Pixel::m_DN.
|
inherited |
Definition at line 96 of file Pixel.cpp.
Referenced by Isis::Pixel::operator=(), and Isis::Pixel::Pixel().
Copy assignment operator.
Definition at line 96 of file Spectel.cpp.
References centerWavelength(), filterWidth(), m_center, m_width, and Isis::Pixel::operator=().
|
inherited |
Definition at line 102 of file Pixel.cpp.
Referenced by Isis::Pixel::operator=(), and Isis::Pixel::Pixel().
|
staticinherited |
|
inherited |
|
staticinherited |
|
inherited |
|
staticinherited |
|
inherited |
|
staticinherited |
|
inherited |
|
staticinherited |
|
staticinherited |
|
staticinherited |
|
staticinherited |
|
inherited |
|
staticinherited |
|
staticinherited |
|
staticinherited |
|
staticinherited |
|
inherited |
|
staticinherited |
Takes a double pixel value and returns the name of the pixel type as a string.
d | Pixel value |
Definition at line 485 of file Pixel.cpp.
References Isis::IsSpecial().
|
inherited |
Returns the name of the pixel type as a string.
Definition at line 504 of file Pixel.cpp.
References Isis::ToString().
|
private |
Center wavelength associated with pixel.
Definition at line 58 of file Spectel.h.
Referenced by centerWavelength(), operator=(), and Spectel().
|
private |
Wavelength width (FWHM) associated with pixel.
Definition at line 60 of file Spectel.h.
Referenced by filterWidth(), operator=(), and Spectel().
U.S. Department of the Interior | U.S. Geological Survey ISIS | Privacy & Disclaimers | Astrogeology Research Program To contact us, please post comments and questions on the USGS Astrogeology Discussion Board To report a bug, or suggest a feature go to: ISIS Github File Modified: 07/13/2023 00:21:50 |