Isis 3 Programmer 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 
248 
249 
250 
254 
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...
Statistics * m_emissionStat
Emission angle statistics.
const Statistics * getObliqueResStat() const
Accessor method for inspecting the statistics gathered on the oblique pixel resolutions of the input ...
Statistics * m_latStat
Universal latitude statistics.
Statistics * m_obliqueResStat
Oblique pixel resolution statistics.
const Statistics * getObliqueSampleResStat() const
Accessor method for inspecting the statistics gathered on the oblique sample resolutions of the input...
const Statistics * getEmissionStat() const
Accessor method for inspecting the statistics gathered on the Emission Angles of the input Camera...
Statistics * m_phaseStat
Phase angle statistics.
Statistics * m_localSolarTimeStat
Local solar time statistics.
Statistics * m_lonStat
Universal longitude statistics.
const Statistics * getNorthAzimuthStat() const
Accessor method for inspecting the statistics gathered on the North Azimuths of the input Camera...
int m_linc
Line increment for composing statistics.
const Statistics * getLonStat() const
Accessor method for inspecting the statistics gathered on the Universal Longitudes of the input Camer...
Statistics * m_northAzimuthStat
North azimuth statistics.
Statistics * m_localRaduisStat
Local radius statistics (in meters).
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...
int m_sinc
Sample increment for composing statistics.
Calculates a series of statistics pertaining to a Camera.
Statistics * m_sampleResStat
Sample resolution statistics.
Pvl toPvl() const
Constructs a Pvl object from the values in the various statistics objects.
Statistics * m_resStat
Pixel resolution statistics.
virtual ~CameraStatistics()
Destroy this instance, deletes all the Statistics objects.
CameraStatistics(QString filename, int sinc, int linc)
Constructs the Camera Statistics object from a Cube filename.
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...
Statistics * m_obliqueLineResStat
Oblique line resolution statistics.
QString m_filename
FileName of the Cube the Camera was derived from.
PvlKeyword constructKeyword(QString keyname, double value, QString unit) const
Takes a name, value, and optionally units and constructs a PVL Keyword.
const Statistics * getLineResStat() const
Accessor method for inspecting the statistics gathered on the Line Resolution of the input Camera...
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...
Container for cube-like labels.
Definition: Pvl.h:135
Statistics * m_obliqueSampleResStat
Oblique sample resolution statistics.
Statistics * m_aspectRatioStat
Aspect ratio statistics.
const Statistics * getIncidenceStat() const
Accessor method for inspecting the statistics gathered on the Incidence Angles of the input Camera...
const Statistics * getLatStat() const
Accessor method for inspecting the statistics gathered on the Universal Latitudes of the input Camera...
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...
Statistics * m_incidenceStat
Incidence angle statistics.
const Statistics * getLocalRaduisStat() const
Accessor method for inspecting the statistics gathered on the Local Radii (in meters) of the input Ca...
const Statistics * getSampleResStat() const
Accessor method for inspecting the statistics gathered on the Sample Resolutions of the input Camera...
Statistics * m_lineResStat
Line resolution statistics.
const Statistics * getPhaseStat() const
Accessor method for inspecting the statistics gathered on the Phase Angles of the input Camera...
const Statistics * getResStat() const
Accessor method for inspecting the statistics gathered on the Pixel Resolutions of the input Camera...