Isis 3 Programmer Reference
SpectralDefinition.h
Go to the documentation of this file.
1 #ifndef SpectralDefinition_h
2 #define SpectralDefinition_h
3 
28 #include <vector>
29 
30 #include "Buffer.h"
31 #include "Cube.h"
32 #include "Spectel.h"
33 
34 namespace Isis{
35  class WavelengthsAndWidths;
36  class Spectel;
37 
53 
54  public:
56  virtual ~SpectralDefinition();
57 
58  virtual Spectel findSpectel(const int sample, const int line, const int band) const = 0;
59  virtual Spectel findSpectel(const Spectel &inSpectel, int sectionNumber) const = 0;
60  virtual Spectel findSpectelByWavelength(const double wavlength, int sectionNumber) const = 0;
61 
62  virtual int sampleCount() const;
63  virtual int lineCount() const;
64  virtual int bandCount() const;
65  virtual int sectionCount() const;
66 
67  virtual int sectionNumber(int s, int l, int b) const = 0;
68 
69  protected:
70 
72  int m_ns;
73 
75  int m_nl;
76 
78  int m_nb;
79 
82 
83  private:
84  void init();
85 
86  };
87 }
88 
89 #endif
virtual int sampleCount() const
Returns the number of samples in the calibration image.
SpectralDefinition()
Constructs an empty SpectralDefinition object.
void init()
Constructor initializer.
int m_numSections
Number of sections of the chip/wavelength data.
virtual int lineCount() const
Returns the number of line in the calibration image.
virtual ~SpectralDefinition()
default destructor
contains calibration info for spectral smile correction (center wavelengths and widths for the whole ...
int m_nl
Number of lines in input Cube.
int m_nb
Number of bands in input Cube.
int m_ns
Number of samples in input Cube.
virtual int bandCount() const
Returns the number of bands in the calibration image.
Namespace for ISIS/Bullet specific routines.
Definition: Apollo.h:31
Stores information about a "Spectral pixel" or spectel.
Definition: Spectel.h:43
virtual int sectionCount() const
Returns the number of sections in the calibration image.