Isis Developer Reference
CameraStatistics.h
Go to the documentation of this file.
1#ifndef CameraStatistics_h
2#define CameraStatistics_h
3
9/* SPDX-License-Identifier: CC0-1.0 */
10
11#include <QString>
12
13namespace 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
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
208 return m_localRaduisStat;
209 };
210
211
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
230 Statistics *m_latStat;
231 Statistics *m_lonStat;
232
233
234
235 Statistics *m_obliqueResStat;
236 Statistics *m_obliqueSampleResStat;
237 Statistics *m_obliqueLineResStat;
238
239 Statistics *m_resStat;
240 Statistics *m_sampleResStat;
241 Statistics *m_lineResStat;
242 Statistics *m_aspectRatioStat;
243 Statistics *m_phaseStat;
244 Statistics *m_emissionStat;
245 Statistics *m_incidenceStat;
246 Statistics *m_localSolarTimeStat;
247 Statistics *m_localRaduisStat;
248 Statistics *m_northAzimuthStat;
249 };
250};
251
252#endif
253
Definition Camera.h:236
Calculates a series of statistics pertaining to a Camera.
Definition CameraStatistics.h:42
const Statistics * getObliqueSampleResStat() const
Accessor method for inspecting the statistics gathered on the oblique sample resolutions of the input...
Definition CameraStatistics.h:106
const Statistics * getObliqueLineResStat() const
Accessor method for inspecting the statistics gathered on the oblique line resolution of the input Ca...
Definition CameraStatistics.h:118
const Statistics * getObliqueResStat() const
Accessor method for inspecting the statistics gathered on the oblique pixel resolutions of the input ...
Definition CameraStatistics.h:96
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
const Statistics * getPhaseStat() const
Accessor method for inspecting the statistics gathered on the Phase Angles of the input Camera.
Definition CameraStatistics.h:163
const Statistics * getEmissionStat() const
Accessor method for inspecting the statistics gathered on the Emission Angles of the input Camera.
Definition CameraStatistics.h:174
const Statistics * getSampleResStat() const
Accessor method for inspecting the statistics gathered on the Sample Resolutions of the input Camera.
Definition CameraStatistics.h:130
CameraStatistics(QString filename, int sinc, int linc)
Constructs the Camera Statistics object from a Cube filename.
Definition CameraStatistics.cpp:32
Pvl toPvl() const
Constructs a Pvl object from the values in the various statistics objects.
Definition CameraStatistics.cpp:366
const Statistics * getLatStat() const
Accessor method for inspecting the statistics gathered on the Universal Latitudes of the input Camera...
Definition CameraStatistics.h:61
const Statistics * getResStat() const
Accessor method for inspecting the statistics gathered on the Pixel Resolutions of the input Camera.
Definition CameraStatistics.h:84
virtual ~CameraStatistics()
Destroy this instance, deletes all the Statistics objects.
Definition CameraStatistics.cpp:159
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:238
PvlKeyword constructKeyword(QString keyname, double value, QString unit) const
Takes a name, value, and optionally units and constructs a PVL Keyword.
Definition CameraStatistics.cpp:280
const Statistics * getLonStat() const
Accessor method for inspecting the statistics gathered on the Universal Longitudes of the input Camer...
Definition CameraStatistics.h:72
const Statistics * getLineResStat() const
Accessor method for inspecting the statistics gathered on the Line Resolution of the input Camera.
Definition CameraStatistics.h:141
const Statistics * getAspectRatioStat() const
Accessor method for inspecting the statistics gathered on the Aspect Ratios of the input Camera.
Definition CameraStatistics.h:152
const Statistics * getLocalSolarTimeStat() const
Accessor method for inspecting the statistics gathered on the Local Solar Times of the input Camera.
Definition CameraStatistics.h:196
const Statistics * getIncidenceStat() const
Accessor method for inspecting the statistics gathered on the Incidence Angles of the input Camera.
Definition CameraStatistics.h:185
const Statistics * getNorthAzimuthStat() const
Accessor method for inspecting the statistics gathered on the North Azimuths of the input Camera.
Definition CameraStatistics.h:218
Container for cube-like labels.
Definition Pvl.h:119
A single keyword-value pair.
Definition PvlKeyword.h:87
This class is used to accumulate statistics on double arrays.
Definition Statistics.h:94
This is free and unencumbered software released into the public domain.
Definition Apollo.h:16