Isis 3 Programmer Reference
SpectralDefinition2D.h
1#ifndef SpectralDefinition2D_h
2#define SpectralDefinition2D_h
8/* SPDX-License-Identifier: CC0-1.0 */
9
10
11#include "FileName.h"
12#include "Spectel.h"
13#include "SpectralDefinition.h"
14
15template<typename T> class QList;
16
17namespace Isis {
18
19 class Spectel;
20
36 public:
37 SpectralDefinition2D(FileName smileDefFilename);
39
40 Spectel findSpectel(const int sample, const int line, const int band) const;
41 Spectel findSpectelByWavelength(const double wavelength, const int sectionNumber) const;
42 Spectel findSpectel(const Spectel &inSpectel, const int sectionNumber) const;
43
44 virtual int sectionCount() const;
45 int sectionNumber(int s, int l, int b) const;
46
47 QString toString();
48
50 void operator()(Buffer &in) const;
51
52 private:
55 QList<QList<Spectel> *> *m_spectelList;
59 QList<int> *m_sectionList;
60 };
61}
62
63#endif
Buffer for reading and writing cube data.
Definition Buffer.h:53
File name manipulation and expansion.
Definition FileName.h:100
Stores information about a "Spectral pixel" or spectel.
Definition Spectel.h:26
A Spectral definition that includes wavelength and center values for each (line, sample) coordinate.
int sectionNumber(int s, int l, int b) const
returns section number given (s,l,b)
int m_numSections
The number of sections of this Spectral Definition.
SpectralDefinition2D(FileName smileDefFilename)
Construct a SpectralDefinition2D object using a filename.
QList< int > * m_sectionList
The list of sections.
QList< QList< Spectel > * > * m_spectelList
Internally represent the samples x 2 lines x n bands calibration file Outside list is the sample inde...
void operator()(Buffer &in) const
Internal function used to help read-in a calibration cube.
QString toString()
Returns QString representation of SpectralDefinition2D.
virtual int sectionCount() const
Returns the number of sections in the calibration image.
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)
contains calibration info for spectral smile correction (center wavelengths and widths for the whole ...
This is free and unencumbered software released into the public domain.
This is free and unencumbered software released into the public domain.
Definition Apollo.h:16