Isis 3 Developer Reference
|
A Spectral definition that includes wavelength and center values for each (line, sample) coordinate. More...
#include <SpectralDefinition2D.h>
Public Member Functions | |
SpectralDefinition2D (FileName smileDefFilename) | |
Construct a SpectralDefinition2D object using a filename. More... | |
~SpectralDefinition2D () | |
destructor More... | |
Spectel | findSpectel (const int sample, const int line, const int band) const |
Get the Spectel at some sample, line, band (associated with your input/calibration file) More... | |
Spectel | findSpectelByWavelength (const double wavelength, const int sectionNumber) const |
Spectel | findSpectel (const Spectel &inSpectel, const int sectionNumber) const |
virtual int | sectionCount () const |
Returns the number of sections in the calibration image. More... | |
int | sectionNumber (int s, int l, int b) const |
returns section number given (s,l,b) More... | |
QString | toString () |
Returns QString representation of SpectralDefinition2D. More... | |
void | operator() (Buffer &in) const |
Internal function used to help read-in a calibration cube. More... | |
virtual int | sampleCount () const |
Returns the number of samples in the calibration image. More... | |
virtual int | lineCount () const |
Returns the number of line in the calibration image. More... | |
virtual int | bandCount () const |
Returns the number of bands in the calibration image. More... | |
Protected Attributes | |
int | m_ns |
Number of samples in input Cube. More... | |
int | m_nl |
Number of lines in input Cube. More... | |
int | m_nb |
Number of bands in input Cube. More... | |
A Spectral definition that includes wavelength and center values for each (line, sample) coordinate.
Isis::SpectralDefinition2D::SpectralDefinition2D | ( | FileName | smileDefFilename | ) |
Construct a SpectralDefinition2D object using a filename.
Isis Cubes are the only supported format.
smileDefFilename | the filename of the spectral definition |
References _FILEINFO_, Isis::Cube::bandCount(), Isis::ProcessByBrick::BandsFirst, Isis::FileName::expanded(), Isis::ProcessByBrick::Finalize(), Isis::Cube::lineCount(), Isis::SpectralDefinition::m_nb, Isis::SpectralDefinition::m_nl, Isis::SpectralDefinition::m_ns, Isis::ProcessBySample::ProcessCubeInPlace(), Isis::Process::Progress(), Isis::Cube::sampleCount(), Isis::ProcessBySample::SetInputCube(), Isis::ProcessByBrick::SetProcessingDirection(), Isis::Progress::SetText(), Isis::FileName::toString(), Isis::IException::Unknown, and Isis::IException::User.
Isis::SpectralDefinition2D::~SpectralDefinition2D | ( | ) |
destructor
|
virtualinherited |
Returns the number of bands in the calibration image.
References Isis::SpectralDefinition::m_nb.
|
virtual |
Get the Spectel at some sample, line, band (associated with your input/calibration file)
sample | input sample |
line | input line. Not used for a 2D definition |
band | input band |
Implements Isis::SpectralDefinition.
|
virtual |
Implements Isis::SpectralDefinition.
References Isis::Spectel::centerWavelength(), Isis::Pixel::sample(), and sectionNumber().
|
virtual |
Implements Isis::SpectralDefinition.
|
virtualinherited |
Returns the number of line in the calibration image.
References Isis::SpectralDefinition::m_nl.
void Isis::SpectralDefinition2D::operator() | ( | Buffer & | in | ) | const |
Internal function used to help read-in a calibration cube.
pull information out of the input cube and store it. Each buffer contains two pixels, one center and one width
References Isis::Buffer::Band(), Isis::NULL8, and Isis::Buffer::Sample().
|
virtualinherited |
Returns the number of samples in the calibration image.
References Isis::SpectralDefinition::m_ns.
|
virtual |
Returns the number of sections in the calibration image.
Reimplemented from Isis::SpectralDefinition.
|
virtual |
returns section number given (s,l,b)
Implements Isis::SpectralDefinition.
Referenced by findSpectel().
QString Isis::SpectralDefinition2D::toString | ( | ) |
Returns QString representation of SpectralDefinition2D.
References Isis::Spectel::centerWavelength(), and Isis::Spectel::filterWidth().
|
protectedinherited |
Number of bands in input Cube.
Referenced by Isis::SpectralDefinition::bandCount(), Isis::SpectralDefinition1D::SpectralDefinition1D(), and SpectralDefinition2D().
|
protectedinherited |
Number of lines in input Cube.
Referenced by Isis::SpectralDefinition::lineCount(), Isis::SpectralDefinition1D::SpectralDefinition1D(), and SpectralDefinition2D().
|
protectedinherited |
Number of samples in input Cube.
Referenced by Isis::SpectralDefinition::sampleCount(), Isis::SpectralDefinition1D::SpectralDefinition1D(), and SpectralDefinition2D().