Isis 3 Programmer Reference
|
A container class for a ControlMeasure. More...
#include <BundleMeasure.h>
Public Member Functions | |
BundleMeasure (ControlMeasure *controlMeasure, BundleControlPoint *bundleControlPoint) | |
Constructor. | |
BundleMeasure (const BundleMeasure &src) | |
Copy constructor. | |
~BundleMeasure () | |
Destructor. | |
BundleMeasure & | operator= (const BundleMeasure &src) |
Assignment operator. | |
void | setParentObservation (QSharedPointer< BundleObservation > observation) |
Sets the parent bundle observation. | |
void | setParentImage (QSharedPointer< BundleImage > image) |
Sets the parent bundle image. | |
void | setRejected (bool reject) |
Sets the BundleMeasure's status to rejected or not rejected. | |
void | setImage () |
Sets the BundleMeasure's status to rejected or not rejected. | |
void | setNormalsPositionBlockIndex (int index) |
Sets block index into normal equations for position piecewise polynomial segment. | |
void | setNormalsPointingBlockIndex (int index) |
Sets block index into normal equations for pointing piecewise polynomial segment. | |
void | setFocalPlaneResidualsMillimeters () |
Computes and sets measure focal plane residuals in millimeters. | |
void | setSigma (double sigma) |
Sets sigma (i.e. | |
bool | isRejected () const |
Determines whether or not this BundleMeasure is rejected. | |
Camera * | camera () const |
Accesses the associated camera for this bundle measure. | |
BundleControlPoint * | parentControlPoint () |
Accesses the parent BundleControlPoint for this bundle measure. | |
QSharedPointer< BundleImage > | parentBundleImage () |
Access the parent BundleImage for this bundle measure. | |
QSharedPointer< BundleObservation > | parentBundleObservation () |
Accesses the parent BundleObservation for this bundle measure. | |
const QSharedPointer< BundleObservationSolveSettings > | observationSolveSettings () |
Accesses the parent observation's solve settings. | |
double | sample () const |
Accesses the current sample measurement for this control measure. | |
double | sampleResidual () const |
Accesses the sample residual for this control measure. | |
double | line () const |
Accesses the current line measurement for this control measure. | |
double | lineResidual () const |
Accesses the line residual for this control measure. | |
double | sigma () const |
Accesses the measure sigma. | |
double | weight () const |
Accesses measure weight for bundle. | |
double | weightSqrt () const |
Accesses sqrt of measure weight for bundle. | |
double | residualMagnitude () const |
Accesses the residual magnitude for this control measure. | |
double | xFocalPlaneResidual () const |
Accesses the focal plane x-coordinate residual in millimeters. | |
double | yFocalPlaneResidual () const |
Accesses the focal plane y-coordinate residual in millimeters. | |
QString | cubeSerialNumber () const |
Accesses the serial number of the cube containing this control measure. | |
double | focalPlaneComputedX () const |
Accesses the computed focal plane x value for this control measure. | |
double | focalPlaneComputedY () const |
Accesses the computed focal plane y value for this control measure. | |
double | focalPlaneMeasuredX () const |
Accesses the measured focal plane x value for this control measure //TODO verify? | |
double | focalPlaneMeasuredY () const |
Accesses the measured focal plane y value for this control measure //TODO verify? | |
int | observationIndex () const |
Accesses the observation index for the parent observation. | |
int | positionNormalsBlockIndex () const |
Accesses block index into normal equations matrix of position piecewise polynomial segment. | |
int | pointingNormalsBlockIndex () const |
Accesses block index into normal equations matrix of pointing piecewise polynomial segment. | |
Private Attributes | |
ControlMeasure * | m_controlMeasure |
Contained control measure. | |
BundleControlPoint * | m_parentControlPoint |
Parent bundle control point that contains this bundle control measure. | |
QSharedPointer< BundleImage > | m_parentBundleImage |
Parent image of this bundle control measure. | |
QSharedPointer< BundleObservation > | m_parentObservation |
Parent bundle observation. | |
int | m_normalsPositionBlockIndex |
block index into normal equations | |
int | m_normalsPointingBlockIndex |
block index into normal equations | |
double | m_xFocalPlaneResidual |
x focal plane residual in mm | |
double | m_yFocalPlaneResidual |
y focal plane residual in mm | |
double | m_sigma |
measure uncertainty in mm | |
double | m_weightSqrt |
sqrt of measure weight | |
A container class for a ControlMeasure.
This class is used as a wrapper around a ControlMeasure to provide the necessary information for BundleAdjust. This class can be used to get the parent bundle observation solve settings for observation mode adjustment.
Note that a BundleMeasure should be created from a non-ignored ControlMeasure.
2015-02-20 Jeannie Backer - Added assignment operator. Brought closer to Isis coding standards.
2016-07-14 Ian Humphrey - Updated documentation and coding standards in preparation to merge into trunk. Updated unit test for BundleMeasure. Fixes #4145, #4077.
2016-08-03 Jesse Mapel - Changed parent observation to a QSharedPointer. Added error throws to observationSolveSettings and observationIndex if calling when parent observation has not been set. Fixes #4150.
2016-08-15 Ian Humphrey - Added sampleResidual(), lineResidual(), residualMagnitude(), focalPlaneComputedX(), and focalPlaneComputedY(). Modified isRejected() and camera() accessors to be const. Updated unit test for these methods. References #4201.
2016-08-15 Jesse Mapel - Changed parent BundleImage to a QSharedPointer and added a mutator. Added wrapper methods for several ControlMeasure methods. Added typedef for BundleMeasureQsp. Fixes #4159.
2016-08-18 Jesse Mapel - Changed to no longer inherit from QObject. Fixes #4192.
2016-08-25 Adam Paquette - Updated documentation. Fixes #4299.
Definition at line 55 of file BundleMeasure.h.
Isis::BundleMeasure::BundleMeasure | ( | ControlMeasure * | controlMeasure, |
BundleControlPoint * | bundleControlPoint ) |
Constructor.
Constructs a BundleMeasure from a ControlMeasure with the passed BundleControlPoint as its parent control point
controlMeasure | Pointer to the ControlMeasure to store |
bundleControlPoint | Pointer to the BundleControlPoint that contains this BundleMeasure |
Definition at line 29 of file BundleMeasure.cpp.
References m_controlMeasure, m_normalsPointingBlockIndex, m_normalsPositionBlockIndex, and m_parentControlPoint.
Isis::BundleMeasure::BundleMeasure | ( | const BundleMeasure & | src | ) |
Copy constructor.
Constructs a BundleMeasure from another BundleMeasure
src | The source BundleMeasure to copy |
Definition at line 52 of file BundleMeasure.cpp.
References m_controlMeasure, m_normalsPointingBlockIndex, m_normalsPositionBlockIndex, m_parentBundleImage, m_parentControlPoint, and m_parentObservation.
Isis::BundleMeasure::~BundleMeasure | ( | ) |
Destructor.
Definition at line 41 of file BundleMeasure.cpp.
Camera * Isis::BundleMeasure::camera | ( | ) | const |
Accesses the associated camera for this bundle measure.
Definition at line 192 of file BundleMeasure.cpp.
References m_controlMeasure.
QString Isis::BundleMeasure::cubeSerialNumber | ( | ) | const |
Accesses the serial number of the cube containing this control measure.
Definition at line 365 of file BundleMeasure.cpp.
References Isis::ControlMeasure::GetCubeSerialNumber(), and m_controlMeasure.
double Isis::BundleMeasure::focalPlaneComputedX | ( | ) | const |
Accesses the computed focal plane x value for this control measure.
Definition at line 377 of file BundleMeasure.cpp.
References m_controlMeasure.
double Isis::BundleMeasure::focalPlaneComputedY | ( | ) | const |
Accesses the computed focal plane y value for this control measure.
Definition at line 389 of file BundleMeasure.cpp.
References m_controlMeasure.
double Isis::BundleMeasure::focalPlaneMeasuredX | ( | ) | const |
Accesses the measured focal plane x value for this control measure //TODO verify?
Definition at line 401 of file BundleMeasure.cpp.
References m_controlMeasure.
double Isis::BundleMeasure::focalPlaneMeasuredY | ( | ) | const |
Accesses the measured focal plane y value for this control measure //TODO verify?
Definition at line 413 of file BundleMeasure.cpp.
References m_controlMeasure.
bool Isis::BundleMeasure::isRejected | ( | ) | const |
Determines whether or not this BundleMeasure is rejected.
Definition at line 180 of file BundleMeasure.cpp.
References m_controlMeasure.
double Isis::BundleMeasure::line | ( | ) | const |
Accesses the current line measurement for this control measure.
Definition at line 267 of file BundleMeasure.cpp.
References m_controlMeasure.
double Isis::BundleMeasure::lineResidual | ( | ) | const |
Accesses the line residual for this control measure.
Definition at line 291 of file BundleMeasure.cpp.
References m_controlMeasure.
int Isis::BundleMeasure::observationIndex | ( | ) | const |
Accesses the observation index for the parent observation.
IException::Programmer | "In BundleMeasure::observationIndex: parent observation has not been set." |
Definition at line 462 of file BundleMeasure.cpp.
References m_parentObservation, and Isis::IException::Programmer.
const QSharedPointer< BundleObservationSolveSettings > Isis::BundleMeasure::observationSolveSettings | ( | ) |
Accesses the parent observation's solve settings.
IException::Programmer | "In BundleMeasure::observationSolveSettings: parent observation has not been set." |
Definition at line 238 of file BundleMeasure.cpp.
References m_parentObservation, and Isis::IException::Programmer.
BundleMeasure & Isis::BundleMeasure::operator= | ( | const BundleMeasure & | src | ) |
Assignment operator.
Assigns the state of this BundleMeasure from another BundleMeasure
src | The source BundleMeasure to assign state from |
Definition at line 71 of file BundleMeasure.cpp.
References m_controlMeasure, m_normalsPointingBlockIndex, m_normalsPositionBlockIndex, m_parentBundleImage, m_parentControlPoint, and m_parentObservation.
QSharedPointer< BundleImage > Isis::BundleMeasure::parentBundleImage | ( | ) |
Access the parent BundleImage for this bundle measure.
Definition at line 212 of file BundleMeasure.cpp.
References m_parentBundleImage.
QSharedPointer< BundleObservation > Isis::BundleMeasure::parentBundleObservation | ( | ) |
Accesses the parent BundleObservation for this bundle measure.
Definition at line 222 of file BundleMeasure.cpp.
References m_parentObservation.
BundleControlPoint * Isis::BundleMeasure::parentControlPoint | ( | ) |
Accesses the parent BundleControlPoint for this bundle measure.
Definition at line 202 of file BundleMeasure.cpp.
References m_parentControlPoint.
int Isis::BundleMeasure::pointingNormalsBlockIndex | ( | ) | const |
Accesses block index into normal equations matrix of pointing piecewise polynomial segment.
Definition at line 170 of file BundleMeasure.cpp.
References m_normalsPointingBlockIndex.
int Isis::BundleMeasure::positionNormalsBlockIndex | ( | ) | const |
Accesses block index into normal equations matrix of position piecewise polynomial segment.
Definition at line 159 of file BundleMeasure.cpp.
References m_normalsPositionBlockIndex.
double Isis::BundleMeasure::residualMagnitude | ( | ) | const |
Accesses the residual magnitude for this control measure.
Definition at line 353 of file BundleMeasure.cpp.
References Isis::ControlMeasure::GetResidualMagnitude(), and m_controlMeasure.
double Isis::BundleMeasure::sample | ( | ) | const |
Accesses the current sample measurement for this control measure.
Definition at line 255 of file BundleMeasure.cpp.
References m_controlMeasure.
double Isis::BundleMeasure::sampleResidual | ( | ) | const |
Accesses the sample residual for this control measure.
Definition at line 279 of file BundleMeasure.cpp.
References m_controlMeasure.
void Isis::BundleMeasure::setFocalPlaneResidualsMillimeters | ( | ) |
Computes and sets measure focal plane residuals in millimeters.
Definition at line 422 of file BundleMeasure.cpp.
References m_controlMeasure, m_xFocalPlaneResidual, and m_yFocalPlaneResidual.
void Isis::BundleMeasure::setImage | ( | ) |
Sets the BundleMeasure's status to rejected or not rejected.
reject | True will set the BundleMeasure to rejected. |
Definition at line 125 of file BundleMeasure.cpp.
References m_controlMeasure, and Isis::Camera::SetImage().
void Isis::BundleMeasure::setNormalsPointingBlockIndex | ( | int | index | ) |
Sets block index into normal equations for pointing piecewise polynomial segment.
index | normal equations matrix block index. |
Definition at line 148 of file BundleMeasure.cpp.
References m_normalsPointingBlockIndex.
void Isis::BundleMeasure::setNormalsPositionBlockIndex | ( | int | index | ) |
Sets block index into normal equations for position piecewise polynomial segment.
index | normal equations matrix block index. |
Definition at line 137 of file BundleMeasure.cpp.
References m_normalsPositionBlockIndex.
void Isis::BundleMeasure::setParentImage | ( | QSharedPointer< BundleImage > | image | ) |
Sets the parent bundle image.
image | Pointer to the parent BundleImage |
Definition at line 101 of file BundleMeasure.cpp.
References m_parentBundleImage.
void Isis::BundleMeasure::setParentObservation | ( | QSharedPointer< BundleObservation > | observation | ) |
Sets the parent bundle observation.
observation | Pointer to the parent BundleObservation |
Definition at line 91 of file BundleMeasure.cpp.
References m_parentObservation.
void Isis::BundleMeasure::setRejected | ( | bool | reject | ) |
Sets the BundleMeasure's status to rejected or not rejected.
reject | True will set the BundleMeasure to rejected. |
Definition at line 113 of file BundleMeasure.cpp.
References m_controlMeasure, and Isis::ControlMeasure::SetRejected().
void Isis::BundleMeasure::setSigma | ( | double | sigmaMultiplier | ) |
Sets sigma (i.e.
standard deviation or uncertainty) of raw measure in mm and sqrt of weight for bundle
double | sigma |
TODO: what if camera has been subsampled, is pixel pitch computation still valid?
Definition at line 439 of file BundleMeasure.cpp.
References m_controlMeasure, m_sigma, m_weightSqrt, Isis::Camera::PixelPitch(), and Isis::IException::Programmer.
double Isis::BundleMeasure::sigma | ( | ) | const |
Accesses the measure sigma.
Definition at line 321 of file BundleMeasure.cpp.
References m_sigma.
double Isis::BundleMeasure::weight | ( | ) | const |
Accesses measure weight for bundle.
Definition at line 341 of file BundleMeasure.cpp.
References m_weightSqrt.
double Isis::BundleMeasure::weightSqrt | ( | ) | const |
Accesses sqrt of measure weight for bundle.
Definition at line 331 of file BundleMeasure.cpp.
References m_weightSqrt.
double Isis::BundleMeasure::xFocalPlaneResidual | ( | ) | const |
Accesses the focal plane x-coordinate residual in millimeters.
Definition at line 301 of file BundleMeasure.cpp.
References m_xFocalPlaneResidual.
double Isis::BundleMeasure::yFocalPlaneResidual | ( | ) | const |
Accesses the focal plane y-coordinate residual in millimeters.
Definition at line 311 of file BundleMeasure.cpp.
References m_yFocalPlaneResidual.
|
private |
Contained control measure.
Definition at line 104 of file BundleMeasure.h.
Referenced by BundleMeasure(), BundleMeasure(), camera(), cubeSerialNumber(), focalPlaneComputedX(), focalPlaneComputedY(), focalPlaneMeasuredX(), focalPlaneMeasuredY(), isRejected(), line(), lineResidual(), operator=(), residualMagnitude(), sample(), sampleResidual(), setFocalPlaneResidualsMillimeters(), setImage(), setRejected(), and setSigma().
|
private |
block index into normal equations
Definition at line 111 of file BundleMeasure.h.
Referenced by BundleMeasure(), BundleMeasure(), operator=(), pointingNormalsBlockIndex(), and setNormalsPointingBlockIndex().
|
private |
block index into normal equations
Definition at line 110 of file BundleMeasure.h.
Referenced by BundleMeasure(), BundleMeasure(), operator=(), positionNormalsBlockIndex(), and setNormalsPositionBlockIndex().
|
private |
Parent image of this bundle control measure.
Definition at line 107 of file BundleMeasure.h.
Referenced by BundleMeasure(), operator=(), parentBundleImage(), and setParentImage().
|
private |
Parent bundle control point that contains this bundle control measure.
Definition at line 105 of file BundleMeasure.h.
Referenced by BundleMeasure(), BundleMeasure(), operator=(), and parentControlPoint().
|
private |
Parent bundle observation.
Definition at line 108 of file BundleMeasure.h.
Referenced by BundleMeasure(), observationIndex(), observationSolveSettings(), operator=(), parentBundleObservation(), and setParentObservation().
|
private |
measure uncertainty in mm
Definition at line 116 of file BundleMeasure.h.
Referenced by setSigma(), and sigma().
|
private |
sqrt of measure weight
Definition at line 117 of file BundleMeasure.h.
Referenced by setSigma(), weight(), and weightSqrt().
|
private |
x focal plane residual in mm
Definition at line 113 of file BundleMeasure.h.
Referenced by setFocalPlaneResidualsMillimeters(), and xFocalPlaneResidual().
|
private |
y focal plane residual in mm
Definition at line 114 of file BundleMeasure.h.
Referenced by setFocalPlaneResidualsMillimeters(), and yFocalPlaneResidual().