Isis Developer Reference
BundleMeasure.h
Go to the documentation of this file.
1#ifndef BundleMeasure_h
2#define BundleMeasure_h
3
10/* SPDX-License-Identifier: CC0-1.0 */
11
12#include <QSharedPointer>
13
14namespace Isis {
15 class BundleControlPoint;
16 class BundleImage;
17 class BundleObservation;
18 class BundleObservationSolveSettings;
19 class Camera;
20 class ControlMeasure;
21
56
57 public:
58 // constructor
59 BundleMeasure(ControlMeasure *controlMeasure, BundleControlPoint *bundleControlPoint);
60
61 // copy constructor
62 BundleMeasure(const BundleMeasure &src);
63
64 // destructor
66
68 void setParentObservation(QSharedPointer<BundleObservation> observation);
69 void setParentImage(QSharedPointer<BundleImage> image);
70 void setRejected(bool reject);
71
72 void setImage();
73 void setNormalsPositionBlockIndex(int index);
74 void setNormalsPointingBlockIndex(int index);
76 void setSigma(double sigma);
77 bool isRejected() const;
78 Camera *camera() const;
80 QSharedPointer<BundleImage> parentBundleImage();
81 QSharedPointer<BundleObservation> parentBundleObservation();
82 const QSharedPointer<BundleObservationSolveSettings> observationSolveSettings();
83
84 double sample() const;
85 double sampleResidual() const;
86 double line() const;
87 double lineResidual() const;
88 double sigma() const;
89 double weight() const;
90 double weightSqrt() const;
91 double residualMagnitude() const;
92 double xFocalPlaneResidual() const;
93 double yFocalPlaneResidual() const;
94 QString cubeSerialNumber() const;
95 double focalPlaneComputedX() const;
96 double focalPlaneComputedY() const;
97 double focalPlaneMeasuredX() const;
98 double focalPlaneMeasuredY() const;
99 int observationIndex() const;
100 int positionNormalsBlockIndex() const;
101 int pointingNormalsBlockIndex() const;
102
103 private:
104 ControlMeasure *m_controlMeasure;
105 BundleControlPoint *m_parentControlPoint;
107 QSharedPointer<BundleImage> m_parentBundleImage;
108 QSharedPointer<BundleObservation> m_parentObservation;
110 int m_normalsPositionBlockIndex;
111 int m_normalsPointingBlockIndex;
112
113 double m_xFocalPlaneResidual;
114 double m_yFocalPlaneResidual;
115
116 double m_sigma;
117 double m_weightSqrt;
118 };
120 typedef QSharedPointer<BundleMeasure> BundleMeasureQsp;
121}
122
123#endif // BundleMeasure_h
This class holds information about a control point that BundleAdjust needs to run correctly.
Definition BundleControlPoint.h:91
A container class for a ControlMeasure.
Definition BundleMeasure.h:55
const QSharedPointer< BundleObservationSolveSettings > observationSolveSettings()
Accesses the parent observation's solve settings.
Definition BundleMeasure.cpp:238
double residualMagnitude() const
Accesses the residual magnitude for this control measure.
Definition BundleMeasure.cpp:353
void setSigma(double sigma)
Sets sigma (i.e.
Definition BundleMeasure.cpp:439
int pointingNormalsBlockIndex() const
Accesses block index into normal equations matrix of pointing piecewise polynomial segment.
Definition BundleMeasure.cpp:170
double sigma() const
Accesses the measure sigma.
Definition BundleMeasure.cpp:321
int positionNormalsBlockIndex() const
Accesses block index into normal equations matrix of position piecewise polynomial segment.
Definition BundleMeasure.cpp:159
void setRejected(bool reject)
Sets the BundleMeasure's status to rejected or not rejected.
Definition BundleMeasure.cpp:113
double focalPlaneMeasuredX() const
Accesses the measured focal plane x value for this control measure //TODO verify?
Definition BundleMeasure.cpp:401
QSharedPointer< BundleImage > parentBundleImage()
Access the parent BundleImage for this bundle measure.
Definition BundleMeasure.cpp:212
void setNormalsPositionBlockIndex(int index)
Sets block index into normal equations for position piecewise polynomial segment.
Definition BundleMeasure.cpp:137
void setParentImage(QSharedPointer< BundleImage > image)
Sets the parent bundle image.
Definition BundleMeasure.cpp:101
double weight() const
Accesses measure weight for bundle.
Definition BundleMeasure.cpp:341
BundleMeasure & operator=(const BundleMeasure &src)
Assignment operator.
Definition BundleMeasure.cpp:71
double sampleResidual() const
Accesses the sample residual for this control measure.
Definition BundleMeasure.cpp:279
double xFocalPlaneResidual() const
Accesses the focal plane x-coordinate residual in millimeters.
Definition BundleMeasure.cpp:301
void setFocalPlaneResidualsMillimeters()
Computes and sets measure focal plane residuals in millimeters.
Definition BundleMeasure.cpp:422
QSharedPointer< BundleObservation > parentBundleObservation()
Accesses the parent BundleObservation for this bundle measure.
Definition BundleMeasure.cpp:222
void setParentObservation(QSharedPointer< BundleObservation > observation)
Sets the parent bundle observation.
Definition BundleMeasure.cpp:91
double sample() const
Accesses the current sample measurement for this control measure.
Definition BundleMeasure.cpp:255
double focalPlaneComputedY() const
Accesses the computed focal plane y value for this control measure.
Definition BundleMeasure.cpp:389
double line() const
Accesses the current line measurement for this control measure.
Definition BundleMeasure.cpp:267
double yFocalPlaneResidual() const
Accesses the focal plane y-coordinate residual in millimeters.
Definition BundleMeasure.cpp:311
int observationIndex() const
Accesses the observation index for the parent observation.
Definition BundleMeasure.cpp:462
void setImage()
Sets the BundleMeasure's status to rejected or not rejected.
Definition BundleMeasure.cpp:125
bool isRejected() const
Determines whether or not this BundleMeasure is rejected.
Definition BundleMeasure.cpp:180
QString cubeSerialNumber() const
Accesses the serial number of the cube containing this control measure.
Definition BundleMeasure.cpp:365
BundleControlPoint * parentControlPoint()
Accesses the parent BundleControlPoint for this bundle measure.
Definition BundleMeasure.cpp:202
void setNormalsPointingBlockIndex(int index)
Sets block index into normal equations for pointing piecewise polynomial segment.
Definition BundleMeasure.cpp:148
double lineResidual() const
Accesses the line residual for this control measure.
Definition BundleMeasure.cpp:291
Camera * camera() const
Accesses the associated camera for this bundle measure.
Definition BundleMeasure.cpp:192
~BundleMeasure()
Destructor.
Definition BundleMeasure.cpp:41
double focalPlaneComputedX() const
Accesses the computed focal plane x value for this control measure.
Definition BundleMeasure.cpp:377
double focalPlaneMeasuredY() const
Accesses the measured focal plane y value for this control measure //TODO verify?
Definition BundleMeasure.cpp:413
BundleMeasure(ControlMeasure *controlMeasure, BundleControlPoint *bundleControlPoint)
Constructor.
Definition BundleMeasure.cpp:29
double weightSqrt() const
Accesses sqrt of measure weight for bundle.
Definition BundleMeasure.cpp:331
Definition Camera.h:236
a control measurement
Definition ControlMeasure.h:175
This is free and unencumbered software released into the public domain.
Definition Apollo.h:16
QSharedPointer< BundleMeasure > BundleMeasureQsp
Definition for BundleMeasureQsp, a shared pointer to a BundleMeasure.
Definition BundleMeasure.h:120