Isis Developer Reference
SpectralDefinition2D.h
Go to the documentation of this file.
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;
57 int m_numSections;
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.
Definition SpectralDefinition2D.h:35
int sectionNumber(int s, int l, int b) const
returns section number given (s,l,b)
Definition SpectralDefinition2D.cpp:77
SpectralDefinition2D(FileName smileDefFilename)
Construct a SpectralDefinition2D object using a filename.
Definition SpectralDefinition2D.cpp:26
void operator()(Buffer &in) const
Internal function used to help read-in a calibration cube.
Definition SpectralDefinition2D.cpp:195
Spectel findSpectelByWavelength(const double wavelength, const int sectionNumber) const
Definition SpectralDefinition2D.cpp:124
QString toString()
Returns QString representation of SpectralDefinition2D.
Definition SpectralDefinition2D.cpp:172
virtual int sectionCount() const
Returns the number of sections in the calibration image.
Definition SpectralDefinition2D.cpp:71
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)
Definition SpectralDefinition2D.cpp:113
~SpectralDefinition2D()
destructor
Definition SpectralDefinition2D.cpp:96
contains calibration info for spectral smile correction (center wavelengths and widths for the whole ...
Definition SpectralDefinition.h:34
This is free and unencumbered software released into the public domain.
Definition BoxcarCachingAlgorithm.h:13
This is free and unencumbered software released into the public domain.
Definition Apollo.h:16