Isis Developer Reference
SpectralDefinition.h
Go to the documentation of this file.
1#ifndef SpectralDefinition_h
2#define SpectralDefinition_h
3
9/* SPDX-License-Identifier: CC0-1.0 */
10#include <vector>
11
12#include "Buffer.h"
13#include "Cube.h"
14#include "Spectel.h"
15
16namespace Isis{
17 class WavelengthsAndWidths;
18 class Spectel;
19
35
36 public:
38 virtual ~SpectralDefinition();
39
40 virtual Spectel findSpectel(const int sample, const int line, const int band) const = 0;
41 virtual Spectel findSpectel(const Spectel &inSpectel, int sectionNumber) const = 0;
42 virtual Spectel findSpectelByWavelength(const double wavlength, int sectionNumber) const = 0;
43
44 virtual int sampleCount() const;
45 virtual int lineCount() const;
46 virtual int bandCount() const;
47 virtual int sectionCount() const;
48
49 virtual int sectionNumber(int s, int l, int b) const = 0;
50
51 protected:
52
54 int m_ns;
55
57 int m_nl;
58
60 int m_nb;
61
64
65 private:
66 void init();
67
68 };
69}
70
71#endif
Stores information about a "Spectral pixel" or spectel.
Definition Spectel.h:26
contains calibration info for spectral smile correction (center wavelengths and widths for the whole ...
Definition SpectralDefinition.h:34
int m_numSections
Number of sections of the chip/wavelength data.
Definition SpectralDefinition.h:63
int m_nl
Number of lines in input Cube.
Definition SpectralDefinition.h:57
SpectralDefinition()
Constructs an empty SpectralDefinition object.
Definition SpectralDefinition.cpp:21
virtual Spectel findSpectelByWavelength(const double wavlength, int sectionNumber) const =0
virtual ~SpectralDefinition()
default destructor
Definition SpectralDefinition.cpp:27
virtual int lineCount() const
Returns the number of line in the calibration image.
Definition SpectralDefinition.cpp:42
virtual int sectionNumber(int s, int l, int b) const =0
virtual int sectionCount() const
Returns the number of sections in the calibration image.
Definition SpectralDefinition.cpp:59
virtual int sampleCount() const
Returns the number of samples in the calibration image.
Definition SpectralDefinition.cpp:34
virtual Spectel findSpectel(const int sample, const int line, const int band) const =0
virtual int bandCount() const
Returns the number of bands in the calibration image.
Definition SpectralDefinition.cpp:50
int m_ns
Number of samples in input Cube.
Definition SpectralDefinition.h:54
int m_nb
Number of bands in input Cube.
Definition SpectralDefinition.h:60
virtual Spectel findSpectel(const Spectel &inSpectel, int sectionNumber) const =0
This is free and unencumbered software released into the public domain.
Definition Apollo.h:16