Isis 3 Programmer Reference
CameraStatistics.h
1 #ifndef CameraStatistics_h
2 #define CameraStatistics_h
3 
9 /* SPDX-License-Identifier: CC0-1.0 */
10 
11 #include <QString>
12 
13 namespace Isis {
14  class Camera;
15  class Pvl;
16  class PvlKeyword;
17  class Statistics;
18 
43  public:
44  CameraStatistics(QString filename, int sinc, int linc);
45  CameraStatistics(Camera *cam, int sinc, int linc);
46  CameraStatistics(Camera *cam, int sinc, int linc, QString filename);
47  virtual ~CameraStatistics();
48 
49  void addStats(Camera *cam, int &sample, int &line);
50  PvlKeyword constructKeyword(QString keyname, double value,
51  QString unit) const;
52  Pvl toPvl() const;
53 
54 
61  const Statistics * getLatStat() const {
62  return m_latStat;
63  };
64 
65 
72  const Statistics * getLonStat() const {
73  return m_lonStat;
74  };
75 
76 
77 
84  const Statistics * getResStat() const {
85  return m_resStat;
86  };
87 
88 
89 
96  const Statistics * getObliqueResStat() const {
97  return m_obliqueResStat;
98  };
99 
107  return m_obliqueSampleResStat;
108  };
109 
110 
111 
119  return m_obliqueLineResStat;
120  };
121 
122 
123 
130  const Statistics * getSampleResStat() const {
131  return m_sampleResStat;
132  };
133 
134 
141  const Statistics * getLineResStat() const {
142  return m_lineResStat;
143  };
144 
145 
152  const Statistics * getAspectRatioStat() const {
153  return m_aspectRatioStat;
154  };
155 
156 
163  const Statistics * getPhaseStat() const {
164  return m_phaseStat;
165  };
166 
167 
174  const Statistics * getEmissionStat() const {
175  return m_emissionStat;
176  };
177 
178 
185  const Statistics * getIncidenceStat() const {
186  return m_incidenceStat;
187  };
188 
189 
197  return m_localSolarTimeStat;
198  };
199 
200 
207  const Statistics * getLocalRaduisStat() const {
208  return m_localRaduisStat;
209  };
210 
211 
218  const Statistics * getNorthAzimuthStat() const {
219  return m_northAzimuthStat;
220  };
221 
222  private:
223  void init(Camera *cam, int sinc, int linc, QString filename);
224 
225 
226  QString m_filename;
227  int m_sinc;
228  int m_linc;
229 
232 
233 
234 
238 
249  };
250 };
251 
252 #endif
253 
Isis::CameraStatistics::getObliqueLineResStat
const Statistics * getObliqueLineResStat() const
Accessor method for inspecting the statistics gathered on the oblique line resolution of the input Ca...
Definition: CameraStatistics.h:118
Isis::CameraStatistics::getObliqueSampleResStat
const Statistics * getObliqueSampleResStat() const
Accessor method for inspecting the statistics gathered on the oblique sample resolutions of the input...
Definition: CameraStatistics.h:106
Isis::Statistics
This class is used to accumulate statistics on double arrays.
Definition: Statistics.h:94
Isis::CameraStatistics::getResStat
const Statistics * getResStat() const
Accessor method for inspecting the statistics gathered on the Pixel Resolutions of the input Camera.
Definition: CameraStatistics.h:84
Isis::PvlKeyword
A single keyword-value pair.
Definition: PvlKeyword.h:82
Isis::CameraStatistics::m_sinc
int m_sinc
Sample increment for composing statistics.
Definition: CameraStatistics.h:227
Isis::CameraStatistics::getObliqueResStat
const Statistics * getObliqueResStat() const
Accessor method for inspecting the statistics gathered on the oblique pixel resolutions of the input ...
Definition: CameraStatistics.h:96
Isis::CameraStatistics::m_emissionStat
Statistics * m_emissionStat
Emission angle statistics.
Definition: CameraStatistics.h:244
Isis::CameraStatistics::getLocalSolarTimeStat
const Statistics * getLocalSolarTimeStat() const
Accessor method for inspecting the statistics gathered on the Local Solar Times of the input Camera.
Definition: CameraStatistics.h:196
Isis::CameraStatistics::getNorthAzimuthStat
const Statistics * getNorthAzimuthStat() const
Accessor method for inspecting the statistics gathered on the North Azimuths of the input Camera.
Definition: CameraStatistics.h:218
Isis::CameraStatistics::getSampleResStat
const Statistics * getSampleResStat() const
Accessor method for inspecting the statistics gathered on the Sample Resolutions of the input Camera.
Definition: CameraStatistics.h:130
Isis::CameraStatistics::m_resStat
Statistics * m_resStat
Pixel resolution statistics.
Definition: CameraStatistics.h:239
Isis::CameraStatistics::getPhaseStat
const Statistics * getPhaseStat() const
Accessor method for inspecting the statistics gathered on the Phase Angles of the input Camera.
Definition: CameraStatistics.h:163
Isis::Pvl
Container for cube-like labels.
Definition: Pvl.h:119
Isis::CameraStatistics
Calculates a series of statistics pertaining to a Camera.
Definition: CameraStatistics.h:42
Isis::Camera
Definition: Camera.h:236
Isis::CameraStatistics::m_obliqueSampleResStat
Statistics * m_obliqueSampleResStat
Oblique sample resolution statistics.
Definition: CameraStatistics.h:236
Isis::CameraStatistics::m_localRaduisStat
Statistics * m_localRaduisStat
Local radius statistics (in meters).
Definition: CameraStatistics.h:247
Isis::CameraStatistics::toPvl
Pvl toPvl() const
Constructs a Pvl object from the values in the various statistics objects.
Definition: CameraStatistics.cpp:367
Isis::CameraStatistics::addStats
void addStats(Camera *cam, int &sample, int &line)
Add statistics data to Statistics objects if the Camera position given by the provided line and sampl...
Definition: CameraStatistics.cpp:239
Isis::CameraStatistics::m_obliqueResStat
Statistics * m_obliqueResStat
Oblique pixel resolution statistics.
Definition: CameraStatistics.h:235
Isis::CameraStatistics::m_phaseStat
Statistics * m_phaseStat
Phase angle statistics.
Definition: CameraStatistics.h:243
Isis::CameraStatistics::m_incidenceStat
Statistics * m_incidenceStat
Incidence angle statistics.
Definition: CameraStatistics.h:245
Isis::CameraStatistics::m_aspectRatioStat
Statistics * m_aspectRatioStat
Aspect ratio statistics.
Definition: CameraStatistics.h:242
Isis::CameraStatistics::m_filename
QString m_filename
FileName of the Cube the Camera was derived from.
Definition: CameraStatistics.h:226
Isis::CameraStatistics::getLineResStat
const Statistics * getLineResStat() const
Accessor method for inspecting the statistics gathered on the Line Resolution of the input Camera.
Definition: CameraStatistics.h:141
Isis::CameraStatistics::getLocalRaduisStat
const Statistics * getLocalRaduisStat() const
Accessor method for inspecting the statistics gathered on the Local Radii (in meters) of the input Ca...
Definition: CameraStatistics.h:207
Isis::CameraStatistics::~CameraStatistics
virtual ~CameraStatistics()
Destroy this instance, deletes all the Statistics objects.
Definition: CameraStatistics.cpp:160
Isis::CameraStatistics::m_lineResStat
Statistics * m_lineResStat
Line resolution statistics.
Definition: CameraStatistics.h:241
Isis::CameraStatistics::m_linc
int m_linc
Line increment for composing statistics.
Definition: CameraStatistics.h:228
Isis::CameraStatistics::getAspectRatioStat
const Statistics * getAspectRatioStat() const
Accessor method for inspecting the statistics gathered on the Aspect Ratios of the input Camera.
Definition: CameraStatistics.h:152
Isis::CameraStatistics::getEmissionStat
const Statistics * getEmissionStat() const
Accessor method for inspecting the statistics gathered on the Emission Angles of the input Camera.
Definition: CameraStatistics.h:174
Isis::CameraStatistics::CameraStatistics
CameraStatistics(QString filename, int sinc, int linc)
Constructs the Camera Statistics object from a Cube filename.
Definition: CameraStatistics.cpp:33
Isis::CameraStatistics::m_northAzimuthStat
Statistics * m_northAzimuthStat
North azimuth statistics.
Definition: CameraStatistics.h:248
Isis::CameraStatistics::init
void init(Camera *cam, int sinc, int linc, QString filename)
Initializes this collection of statistics by incrementing over sample/line positions in the Camera an...
Definition: CameraStatistics.cpp:92
Isis::CameraStatistics::m_lonStat
Statistics * m_lonStat
Universal longitude statistics.
Definition: CameraStatistics.h:231
Isis::CameraStatistics::getIncidenceStat
const Statistics * getIncidenceStat() const
Accessor method for inspecting the statistics gathered on the Incidence Angles of the input Camera.
Definition: CameraStatistics.h:185
Isis::CameraStatistics::getLatStat
const Statistics * getLatStat() const
Accessor method for inspecting the statistics gathered on the Universal Latitudes of the input Camera...
Definition: CameraStatistics.h:61
Isis::CameraStatistics::constructKeyword
PvlKeyword constructKeyword(QString keyname, double value, QString unit) const
Takes a name, value, and optionally units and constructs a PVL Keyword.
Definition: CameraStatistics.cpp:281
Isis::CameraStatistics::m_localSolarTimeStat
Statistics * m_localSolarTimeStat
Local solar time statistics.
Definition: CameraStatistics.h:246
Isis::CameraStatistics::m_obliqueLineResStat
Statistics * m_obliqueLineResStat
Oblique line resolution statistics.
Definition: CameraStatistics.h:237
Isis
This is free and unencumbered software released into the public domain.
Definition: Apollo.h:16
Isis::CameraStatistics::m_sampleResStat
Statistics * m_sampleResStat
Sample resolution statistics.
Definition: CameraStatistics.h:240
Isis::CameraStatistics::getLonStat
const Statistics * getLonStat() const
Accessor method for inspecting the statistics gathered on the Universal Longitudes of the input Camer...
Definition: CameraStatistics.h:72
Isis::CameraStatistics::m_latStat
Statistics * m_latStat
Universal latitude statistics.
Definition: CameraStatistics.h:230