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 
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 
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 
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::Camera::SetBand
virtual void SetBand(const int band)
Virtual method that sets the band number.
Definition: Camera.cpp:2680
Isis::Statistics
This class is used to accumulate statistics on double arrays.
Definition: Statistics.h:94
Cube.h
Isis::Statistics::AddData
void AddData(const double *data, const unsigned int count)
Add an array of doubles to the accumulators and counters.
Definition: Statistics.cpp:141
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::Progress::CheckStatus
void CheckStatus()
Checks and updates the status.
Definition: Progress.cpp:105
Isis::Camera::ObliquePixelResolution
virtual double ObliquePixelResolution()
Returns the oblique pixel resolution at the current position in meters/pixel.
Definition: Camera.cpp:685
Isis::PvlKeyword
A single keyword-value pair.
Definition: PvlKeyword.h:82
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::Sensor::HasSurfaceIntersection
bool HasSurfaceIntersection() const
Returns if the last call to either SetLookDirection or SetUniversalGround had a valid intersection wi...
Definition: Sensor.cpp:186
Isis::Camera::SetImage
virtual bool SetImage(const double sample, const double line)
Sets the sample/line values of the image to get the lat/lon values.
Definition: Camera.cpp:154
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::Progress::SetMaximumSteps
void SetMaximumSteps(const int steps)
This sets the maximum number of steps in the process.
Definition: Progress.cpp:85
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::Statistics::Maximum
double Maximum() const
Returns the absolute maximum double found in all data passed through the AddData method.
Definition: Statistics.cpp:403
Isis::Camera::ObliqueSampleResolution
virtual double ObliqueSampleResolution()
Returns the oblique sample resolution at the current position in m.
Definition: Camera.cpp:639
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::Sensor::LocalSolarTime
double LocalSolarTime()
Return the local solar time in hours.
Definition: Sensor.cpp:660
Isis::CameraStatistics
Calculates a series of statistics pertaining to a Camera.
Definition: CameraStatistics.h:42
Isis::Camera
Definition: Camera.h:236
Isis::CameraStatistics::toPvl
Pvl toPvl() const
Constructs a Pvl object from the values in the various statistics objects.
Definition: CameraStatistics.cpp:367
Isis::toString
QString toString(bool boolToConvert)
Global function to convert a boolean to a string.
Definition: IString.cpp:211
Isis::IsSpecial
bool IsSpecial(const double d)
Returns if the input pixel is special.
Definition: SpecialPixel.h:197
CameraStatistics.h
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::PvlGroup
Contains multiple PvlContainers.
Definition: PvlGroup.h:41
Isis::Sensor::UniversalLongitude
virtual double UniversalLongitude() const
Returns the positive east, 0-360 domain longitude, in degrees, at the surface intersection point in t...
Definition: Sensor.cpp:233
Isis::Statistics::StandardDeviation
double StandardDeviation() const
Computes and returns the standard deviation.
Definition: Statistics.cpp:312
Isis::Statistics::Minimum
double Minimum() const
Returns the absolute minimum double found in all data passed through the AddData method.
Definition: Statistics.cpp:382
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::Camera::LineResolution
virtual double LineResolution()
Returns the line resolution at the current position in meters.
Definition: Camera.cpp:649
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::Camera::NorthAzimuth
double NorthAzimuth()
Returns the North Azimuth.
Definition: Camera.cpp:1893
Isis::Cube
IO Handler for Isis Cubes.
Definition: Cube.h:167
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::Sensor::IncidenceAngle
virtual double IncidenceAngle() const
Returns the incidence angle in degrees.
Definition: Sensor.cpp:335
Isis::CameraStatistics::CameraStatistics
CameraStatistics(QString filename, int sinc, int linc)
Constructs the Camera Statistics object from a Cube filename.
Definition: CameraStatistics.cpp:33
Isis::Progress
Program progress reporter.
Definition: Progress.h:42
Camera.h
Isis::Camera::Bands
int Bands() const
Returns the number of bands in the image.
Definition: Camera.cpp:2796
Isis::PvlObject::addGroup
void addGroup(const Isis::PvlGroup &group)
Add a group to the object.
Definition: PvlObject.h:186
Isis::Camera::IsBandIndependent
virtual bool IsBandIndependent()
Virtual method that checks if the band is independent.
Definition: Camera.cpp:2649
Isis::Camera::Samples
int Samples() const
Returns the number of samples in the image.
Definition: Camera.cpp:2776
Isis::Statistics::Average
double Average() const
Computes and returns the average.
Definition: Statistics.cpp:300
Isis::Cube::camera
Camera * camera()
Return a camera associated with the cube.
Definition: Cube.cpp:1451
Statistics.h
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::Camera::PixelResolution
virtual double PixelResolution()
Returns the pixel resolution at the current position in meters/pixel.
Definition: Camera.cpp:670
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::Distance::meters
double meters() const
Get the distance in meters.
Definition: Distance.cpp:85
Isis::Sensor::PhaseAngle
virtual double PhaseAngle() const
Returns the phase angle in degrees.
Definition: Sensor.cpp:312
Isis::Camera::Lines
int Lines() const
Returns the number of lines in the image.
Definition: Camera.cpp:2786
Isis::Sensor::EmissionAngle
virtual double EmissionAngle() const
Returns the emission angle in degrees.
Definition: Sensor.cpp:324
Isis::Camera::SampleResolution
virtual double SampleResolution()
Returns the sample resolution at the current position in meters.
Definition: Camera.cpp:629
Distance.h
Isis::Cube::open
void open(const QString &cfile, QString access="r")
This method will open an isis cube for reading or reading/writing.
Definition: Cube.cpp:627
Isis::Camera::ObliqueLineResolution
virtual double ObliqueLineResolution()
Returns the oblique line resolution at the current position in meters.
Definition: Camera.cpp:661
IsisDebug.h
Progress.h
Isis
This is free and unencumbered software released into the public domain.
Definition: Apollo.h:16
Isis::Pvl::setTerminator
void setTerminator(const QString &term)
Sets the terminator used to signify the end of the PVL informationDefaults to "END".
Definition: Pvl.h:144
Isis::Sensor::LocalRadius
Distance LocalRadius() const
Returns the local radius at the intersection point.
Definition: Sensor.cpp:267
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::Sensor::UniversalLatitude
virtual double UniversalLatitude() const
Returns the planetocentric latitude, in degrees, at the surface intersection point in the body fixed ...
Definition: Sensor.cpp:210