Isis 3 Developer Reference
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 
59  public:
60  CameraStatistics(QString filename, int sinc, int linc);
61  CameraStatistics(Camera *cam, int sinc, int linc);
62  CameraStatistics(Camera *cam, int sinc, int linc, QString filename);
63  virtual ~CameraStatistics();
64 
65  void addStats(Camera *cam, int &sample, int &line);
66  PvlKeyword constructKeyword(QString keyname, double value,
67  QString unit) const;
68  Pvl toPvl() const;
69 
70 
77  const Statistics * getLatStat() const {
78  return m_latStat;
79  };
80 
81 
88  const Statistics * getLonStat() const {
89  return m_lonStat;
90  };
91 
92 
93 
100  const Statistics * getResStat() const {
101  return m_resStat;
102  };
103 
104 
105 
112  const Statistics * getObliqueResStat() const {
113  return m_obliqueResStat;
114  };
115 
123  return m_obliqueSampleResStat;
124  };
125 
126 
127 
135  return m_obliqueLineResStat;
136  };
137 
138 
139 
146  const Statistics * getSampleResStat() const {
147  return m_sampleResStat;
148  };
149 
150 
157  const Statistics * getLineResStat() const {
158  return m_lineResStat;
159  };
160 
161 
168  const Statistics * getAspectRatioStat() const {
169  return m_aspectRatioStat;
170  };
171 
172 
179  const Statistics * getPhaseStat() const {
180  return m_phaseStat;
181  };
182 
183 
190  const Statistics * getEmissionStat() const {
191  return m_emissionStat;
192  };
193 
194 
201  const Statistics * getIncidenceStat() const {
202  return m_incidenceStat;
203  };
204 
205 
213  return m_localSolarTimeStat;
214  };
215 
216 
223  const Statistics * getLocalRaduisStat() const {
224  return m_localRaduisStat;
225  };
226 
227 
234  const Statistics * getNorthAzimuthStat() const {
235  return m_northAzimuthStat;
236  };
237 
238  private:
239  void init(Camera *cam, int sinc, int linc, QString filename);
240 
241 
242  QString m_filename;
243  int m_sinc;
244  int m_linc;
245 
246  Statistics *m_latStat;
247  Statistics *m_lonStat;
248 
249 
250 
251  Statistics *m_obliqueResStat;
252  Statistics *m_obliqueSampleResStat;
253  Statistics *m_obliqueLineResStat;
254 
255  Statistics *m_resStat;
256  Statistics *m_sampleResStat;
257  Statistics *m_lineResStat;
258  Statistics *m_aspectRatioStat;
259  Statistics *m_phaseStat;
260  Statistics *m_emissionStat;
261  Statistics *m_incidenceStat;
262  Statistics *m_localSolarTimeStat;
263  Statistics *m_localRaduisStat;
264  Statistics *m_northAzimuthStat;
265  };
266 };
267 
268 #endif
269 
const Statistics * getLocalSolarTimeStat() const
Accessor method for inspecting the statistics gathered on the Local Solar Times of the input Camera...
Definition: CameraStatistics.h:212
const Statistics * getObliqueResStat() const
Accessor method for inspecting the statistics gathered on the oblique pixel resolutions of the input ...
Definition: CameraStatistics.h:112
const Statistics * getObliqueSampleResStat() const
Accessor method for inspecting the statistics gathered on the oblique sample resolutions of the input...
Definition: CameraStatistics.h:122
const Statistics * getEmissionStat() const
Accessor method for inspecting the statistics gathered on the Emission Angles of the input Camera...
Definition: CameraStatistics.h:190
const Statistics * getNorthAzimuthStat() const
Accessor method for inspecting the statistics gathered on the North Azimuths of the input Camera...
Definition: CameraStatistics.h:234
const Statistics * getLonStat() const
Accessor method for inspecting the statistics gathered on the Universal Longitudes of the input Camer...
Definition: CameraStatistics.h:88
Definition: Camera.h:249
This class is used to accumulate statistics on double arrays.
Definition: Statistics.h:107
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:58
Pvl toPvl() const
Constructs a Pvl object from the values in the various statistics objects.
Definition: CameraStatistics.cpp:361
virtual ~CameraStatistics()
Destroy this instance, deletes all the Statistics objects.
Definition: CameraStatistics.cpp:154
CameraStatistics(QString filename, int sinc, int linc)
Constructs the Camera Statistics object from a Cube filename.
Definition: CameraStatistics.cpp:27
A single keyword-value pair.
Definition: PvlKeyword.h:98
const Statistics * getAspectRatioStat() const
Accessor method for inspecting the statistics gathered on the Aspect Ratios of the input Camera...
Definition: CameraStatistics.h:168
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 * getLineResStat() const
Accessor method for inspecting the statistics gathered on the Line Resolution of the input Camera...
Definition: CameraStatistics.h:157
Container for cube-like labels.
Definition: Pvl.h:135
const Statistics * getIncidenceStat() const
Accessor method for inspecting the statistics gathered on the Incidence Angles of the input Camera...
Definition: CameraStatistics.h:201
const Statistics * getLatStat() const
Accessor method for inspecting the statistics gathered on the Universal Latitudes of the input Camera...
Definition: CameraStatistics.h:77
Namespace for ISIS/Bullet specific routines.
Definition: Apollo.h:31
const Statistics * getObliqueLineResStat() const
Accessor method for inspecting the statistics gathered on the oblique line resolution of the input Ca...
Definition: CameraStatistics.h:134
const Statistics * getLocalRaduisStat() const
Accessor method for inspecting the statistics gathered on the Local Radii (in meters) of the input Ca...
Definition: CameraStatistics.h:223
const Statistics * getSampleResStat() const
Accessor method for inspecting the statistics gathered on the Sample Resolutions of the input Camera...
Definition: CameraStatistics.h:146
const Statistics * getPhaseStat() const
Accessor method for inspecting the statistics gathered on the Phase Angles of the input Camera...
Definition: CameraStatistics.h:179
const Statistics * getResStat() const
Accessor method for inspecting the statistics gathered on the Pixel Resolutions of the input Camera...
Definition: CameraStatistics.h:100