Isis 3.0
Back | Home
CameraStatistics.h
Go to the documentation of this file.
1 #ifndef CameraStatistics_h
2 #define CameraStatistics_h
3 
27 #include <QString>
28 
29 namespace Isis {
30  class Camera;
31  class Pvl;
32  class PvlKeyword;
33  class Statistics;
34 
58  public:
59  CameraStatistics(QString filename, int sinc, int linc);
60  CameraStatistics(Camera *cam, int sinc, int linc);
61  CameraStatistics(Camera *cam, int sinc, int linc, QString filename);
62  virtual ~CameraStatistics();
63 
64  void addStats(Camera *cam, int &sample, int &line);
65  PvlKeyword constructKeyword(QString keyname, double value,
66  QString unit) const;
67  Pvl toPvl() const;
68 
69 
76  const Statistics * getLatStat() const {
77  return m_latStat;
78  };
79 
80 
87  const Statistics * getLonStat() const {
88  return m_lonStat;
89  };
90 
91 
92 
99  const Statistics * getResStat() const {
100  return m_resStat;
101  };
102 
103 
104 
111  const Statistics * getObliqueResStat() const {
112  return m_obliqueResStat;
113  };
114 
122  return m_obliqueSampleResStat;
123  };
124 
125 
126 
134  return m_obliqueLineResStat;
135  };
136 
137 
138 
145  const Statistics * getSampleResStat() const {
146  return m_sampleResStat;
147  };
148 
149 
156  const Statistics * getLineResStat() const {
157  return m_lineResStat;
158  };
159 
160 
167  const Statistics * getAspectRatioStat() const {
168  return m_aspectRatioStat;
169  };
170 
171 
178  const Statistics * getPhaseStat() const {
179  return m_phaseStat;
180  };
181 
182 
189  const Statistics * getEmissionStat() const {
190  return m_emissionStat;
191  };
192 
193 
200  const Statistics * getIncidenceStat() const {
201  return m_incidenceStat;
202  };
203 
204 
212  return m_localSolarTimeStat;
213  };
214 
215 
222  const Statistics * getLocalRaduisStat() const {
223  return m_localRaduisStat;
224  };
225 
226 
233  const Statistics * getNorthAzimuthStat() const {
234  return m_northAzimuthStat;
235  };
236 
237  private:
238  void init(Camera *cam, int sinc, int linc, QString filename);
239 
241  QString m_filename;
242  int m_sinc;
243  int m_linc;
244 
245  Statistics *m_latStat;
246  Statistics *m_lonStat;
247 
248 
249 
250  Statistics *m_obliqueResStat;
251  Statistics *m_obliqueSampleResStat;
252  Statistics *m_obliqueLineResStat;
253 
254  Statistics *m_resStat;
255  Statistics *m_sampleResStat;
256  Statistics *m_lineResStat;
257  Statistics *m_aspectRatioStat;
258  Statistics *m_phaseStat;
259  Statistics *m_emissionStat;
260  Statistics *m_incidenceStat;
261  Statistics *m_localSolarTimeStat;
262  Statistics *m_localRaduisStat;
263  Statistics *m_northAzimuthStat;
264  };
265 };
266 
267 #endif
268 
const Statistics * getSampleResStat() const
Accessor method for inspecting the statistics gathered on the Sample Resolutions of the input Camera...
Definition: CameraStatistics.h:145
Pvl toPvl() const
Constructs a Pvl object from the values in the various statistics objects.
Definition: CameraStatistics.cpp:361
const Statistics * getPhaseStat() const
Accessor method for inspecting the statistics gathered on the Phase Angles of the input Camera...
Definition: CameraStatistics.h:178
const Statistics * getAspectRatioStat() const
Accessor method for inspecting the statistics gathered on the Aspect Ratios of the input Camera...
Definition: CameraStatistics.h:167
const Statistics * getResStat() const
Accessor method for inspecting the statistics gathered on the Pixel Resolutions of the input Camera...
Definition: CameraStatistics.h:99
const Statistics * getEmissionStat() const
Accessor method for inspecting the statistics gathered on the Emission Angles of the input Camera...
Definition: CameraStatistics.h:189
const Statistics * getLocalRaduisStat() const
Accessor method for inspecting the statistics gathered on the Local Radii (in meters) of the input Ca...
Definition: CameraStatistics.h:222
Definition: Camera.h:240
This class is used to accumulate statistics on double arrays.
Definition: Statistics.h:109
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:233
Calculates a series of statistics pertaining to a Camera.
Definition: CameraStatistics.h:57
const Statistics * getObliqueLineResStat() const
Accessor method for inspecting the statistics gathered on the oblique line resolution of the input Ca...
Definition: CameraStatistics.h:133
const Statistics * getLatStat() const
Accessor method for inspecting the statistics gathered on the Universal Latitudes of the input Camera...
Definition: CameraStatistics.h:76
virtual ~CameraStatistics()
Destroy this instance, deletes all the Statistics objects.
Definition: CameraStatistics.cpp:154
const Statistics * getIncidenceStat() const
Accessor method for inspecting the statistics gathered on the Incidence Angles of the input Camera...
Definition: CameraStatistics.h:200
CameraStatistics(QString filename, int sinc, int linc)
Constructs the Camera Statistics object from a Cube filename.
Definition: CameraStatistics.cpp:27
const Statistics * getNorthAzimuthStat() const
Accessor method for inspecting the statistics gathered on the North Azimuths of the input Camera...
Definition: CameraStatistics.h:233
A single keyword-value pair.
Definition: PvlKeyword.h:98
const Statistics * getLocalSolarTimeStat() const
Accessor method for inspecting the statistics gathered on the Local Solar Times of the input Camera...
Definition: CameraStatistics.h:211
PvlKeyword constructKeyword(QString keyname, double value, QString unit) const
Takes a name, value, and optionally units and constructs a PVL Keyword.
Definition: CameraStatistics.cpp:275
const Statistics * getObliqueResStat() const
Accessor method for inspecting the statistics gathered on the oblique pixel resolutions of the input ...
Definition: CameraStatistics.h:111
Container for cube-like labels.
Definition: Pvl.h:135
const Statistics * getObliqueSampleResStat() const
Accessor method for inspecting the statistics gathered on the oblique sample resolutions of the input...
Definition: CameraStatistics.h:121
const Statistics * getLonStat() const
Accessor method for inspecting the statistics gathered on the Universal Longitudes of the input Camer...
Definition: CameraStatistics.h:87
const Statistics * getLineResStat() const
Accessor method for inspecting the statistics gathered on the Line Resolution of the input Camera...
Definition: CameraStatistics.h:156

U.S. Department of the Interior | U.S. Geological Survey
ISIS | Privacy & Disclaimers | Astrogeology Research Program
To contact us, please post comments and questions on the ISIS Support Center
File Modified: 07/12/2023 23:15:42