Isis 3 Programmer Reference
SpectralDefinition2D.h
Go to the documentation of this file.
1 #ifndef SpectralDefinition2D_h
2 #define SpectralDefinition2D_h
3 
29 #include "FileName.h"
30 #include "Spectel.h"
31 #include "SpectralDefinition.h"
32 
33 template<typename T> class QList;
34 
35 namespace Isis {
36 
37  class Spectel;
38 
54  public:
55  SpectralDefinition2D(FileName smileDefFilename);
57 
58  Spectel findSpectel(const int sample, const int line, const int band) const;
59  Spectel findSpectelByWavelength(const double wavelength, const int sectionNumber) const;
60  Spectel findSpectel(const Spectel &inSpectel, const int sectionNumber) const;
61 
62  virtual int sectionCount() const;
63  int sectionNumber(int s, int l, int b) const;
64 
65  QString toString();
66 
68  void operator()(Buffer &in) const;
69 
70  private:
78  };
79 }
80 
81 #endif
SpectralDefinition2D(FileName smileDefFilename)
Construct a SpectralDefinition2D object using a filename.
Buffer for reading and writing cube data.
Definition: Buffer.h:69
File name manipulation and expansion.
Definition: FileName.h:116
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) ...
int m_numSections
The number of sections of this Spectral Definition.
void operator()(Buffer &in) const
Internal function used to help read-in a calibration cube.
QList< QList< Spectel > * > * m_spectelList
Internally represent the samples x 2 lines x n bands calibration file Outside list is the sample inde...
virtual int sectionCount() const
Returns the number of sections in the calibration image.
int sectionNumber(int s, int l, int b) const
returns section number given (s,l,b)
QString toString()
Returns QString representation of SpectralDefinition2D.
contains calibration info for spectral smile correction (center wavelengths and widths for the whole ...
QList< int > * m_sectionList
The list of sections.
Namespace for ISIS/Bullet specific routines.
Definition: Apollo.h:31
Stores information about a "Spectral pixel" or spectel.
Definition: Spectel.h:43
A Spectral definition that includes wavelength and center values for each (line, sample) coordinate...