Isis Developer Reference
|
Class for observations that use CSM camera models in bundle adjustment. More...
#include <CsmBundleObservation.h>
Public Member Functions | |
CsmBundleObservation () | |
Constructs a CsmBundleObservation initialized to a default state. | |
CsmBundleObservation (BundleImageQsp image, QString observationNumber, QString instrumentId, BundleTargetBodyQsp bundleTargetBody) | |
Constructs a CsmBundleObservation from a BundleImage, an instrument id, an observation number to assign to this CsmBundleObservation, and a target body. | |
CsmBundleObservation (const CsmBundleObservation &src) | |
Creates a copy of another CsmBundleObservation. | |
~CsmBundleObservation () | |
Destructor. | |
CsmBundleObservation & | operator= (const CsmBundleObservation &src) |
Assignment operator. | |
void | copy (const CsmBundleObservation &src) |
virtual bool | setSolveSettings (BundleObservationSolveSettings solveSettings) |
Set solve parameters. | |
int | numberParameters () |
Returns the number of total parameters there are for solving. | |
const BundleObservationSolveSettingsQsp | solveSettings () |
Accesses the solve settings. | |
bool | applyParameterCorrections (LinearAlgebra::Vector corrections) |
Applies the parameter corrections. | |
void | bundleOutputString (std::ostream &fpOut, bool errorPropagation) |
Takes in an open std::ofstream and writes out information which goes into the bundleout.txt file. | |
QString | bundleOutputCSV (bool errorPropagation) |
Creates and returns a formatted QString representing the bundle coefficients and parameters in csv format. | |
virtual QStringList | parameterList () |
Returns the list of observation parameter names. | |
bool | computeTargetPartials (LinearAlgebra::Matrix &coeffTarget, BundleMeasure &measure, BundleSettingsQsp &bundleSettings, BundleTargetBodyQsp &bundleTargetBody) |
Cannot compute target body parameters for a CSM observation, so always throws an exception. | |
bool | computeImagePartials (LinearAlgebra::Matrix &coeffImage, BundleMeasure &measure) |
Calculates the sensor partials with respect to the solve parameters and populates the coeffImage matrix. | |
bool | computePoint3DPartials (LinearAlgebra::Matrix &coeffPoint3D, BundleMeasure &measure, SurfacePoint::CoordinateType coordType) |
Calculates the ground partials for the line, sample currently set in the sensor model. | |
bool | computeRHSPartials (LinearAlgebra::Vector &coeffRHS, BundleMeasure &measure) |
Calculates the sample, line residuals between the values measured in the image and the ground-to-image sample, line calculated by the sensor model. | |
double | computeObservationValue (BundleMeasure &measure, double deltaVal) |
Returns the observed value in (sample, line) coordinates. | |
void | copy (const BundleObservation &src) |
virtual void | append (const BundleImageQsp &value) |
Appends a BundleImage shared pointer to the BundleObservation. | |
BundleImageQsp | imageByCubeSerialNumber (QString cubeSerialNumber) |
Returns the BundleImage shared pointer associated with the given serial number. | |
void | setIndex (int n) |
Sets the index for the observation. | |
int | index () |
Accesses the observation's index. | |
QString | instrumentId () |
Accesses the instrument id. | |
double | vtpv () |
Compute vtpv, the weighted sum of squares of constrained image parameter residuals. | |
virtual LinearAlgebra::Vector & | parameterWeights () |
Accesses the solve parameter weights. | |
virtual LinearAlgebra::Vector & | parameterCorrections () |
Accesses the parameter corrections. | |
virtual LinearAlgebra::Vector & | aprioriSigmas () |
Accesses the a priori sigmas. | |
virtual LinearAlgebra::Vector & | adjustedSigmas () |
Accesses the adjusted sigmas. | |
virtual QStringList | imageNames () |
Access to image names for CorrelationMatrix to use. | |
Protected Attributes | |
QString | m_observationNumber |
The shared portion of the serial numbers of all images in the observation. | |
int | m_index |
Index of this observation in the set of observations. Map between cube serial number and BundleImage pointers. | |
QMap< QString, BundleImageQsp > | m_cubeSerialNumberToBundleImageMap |
QStringList | m_serialNumbers |
List of all cube serial numbers in observation. | |
QStringList | m_imageNames |
List of all cube names. | |
QString | m_instrumentId |
Spacecraft instrument id. | |
LinearAlgebra::Vector | m_weights |
Parameter weights. Cumulative parameter correction vector. | |
LinearAlgebra::Vector | m_corrections |
LinearAlgebra::Vector | m_aprioriSigmas |
A posteriori (adjusted) parameter sigmas. | |
LinearAlgebra::Vector | m_adjustedSigmas |
A posteriori (adjusted) parameter sigmas. | |
Class for observations that use CSM camera models in bundle adjustment.
Isis::CsmBundleObservation::CsmBundleObservation | ( | ) |
Constructs a CsmBundleObservation initialized to a default state.
Isis::CsmBundleObservation::CsmBundleObservation | ( | BundleImageQsp | image, |
QString | observationNumber, | ||
QString | instrumentId, | ||
BundleTargetBodyQsp | bundleTargetBody ) |
Constructs a CsmBundleObservation from a BundleImage, an instrument id, an observation number to assign to this CsmBundleObservation, and a target body.
image | QSharedPointer to the primary image in the observation |
observationNumber | Observation number of the observation |
instrumentId | Id of the instrument for the observation |
bundleTargetBody | QSharedPointer to the target body of the observation |
References _FILEINFO_, and Isis::IException::User.
Isis::CsmBundleObservation::CsmBundleObservation | ( | const CsmBundleObservation & | src | ) |
Creates a copy of another CsmBundleObservation.
src | Reference to the CsmBundleObservation to copy |
Isis::CsmBundleObservation::~CsmBundleObservation | ( | ) |
Destructor.
Contained BundleImages will remain until all shared pointers are deleted.
|
virtualinherited |
Accesses the adjusted sigmas.
References Isis::BundleObservation::m_adjustedSigmas.
|
virtualinherited |
Appends a BundleImage shared pointer to the BundleObservation.
If the pointer is valid, then the BundleImage and its serial number will be inserted into the serial number to BundleImage map.
value | The BundleImage to be appended. |
References Isis::BundleObservation::m_cubeSerialNumberToBundleImageMap.
Referenced by Isis::BundleObservation::BundleObservation().
|
virtual |
Applies the parameter corrections.
corrections | Vector of corrections to apply |
IException::Unknown | "Instrument position is NULL, but position solve option is [not NoPositionFactors]" |
IException::Unknown | "Instrument position is NULL, but pointing solve option is [not NoPointingFactors]" |
IException::Unknown | "Unable to apply parameter corrections to CsmBundleObservation." |
Implements Isis::BundleObservation.
References _FILEINFO_, Isis::CSMCamera::applyParameterCorrection(), Isis::BundleObservation::m_corrections, and Isis::IException::Programmer.
|
virtualinherited |
Accesses the a priori sigmas.
References Isis::BundleObservation::m_aprioriSigmas.
|
virtual |
Creates and returns a formatted QString representing the bundle coefficients and parameters in csv format.
errorPropagation | Boolean indicating whether or not to attach more information (corrections, sigmas, adjusted sigmas...) to the output QString |
Implements Isis::BundleObservation.
References Isis::CSMCamera::getParameterValue(), Isis::BundleObservation::m_adjustedSigmas, Isis::BundleObservation::m_aprioriSigmas, Isis::BundleObservation::m_corrections, and Isis::toString().
|
virtual |
Takes in an open std::ofstream and writes out information which goes into the bundleout.txt file.
fpOut | The open std::ofstream object which is passed in from BundleSolutionInfo::outputText() |
errorPropagation | Boolean indicating whether or not to attach more information (corrections, sigmas, adjusted sigmas...) to the output. |
Implements Isis::BundleObservation.
References Isis::IsSpecial(), Isis::BundleObservation::m_adjustedSigmas, Isis::BundleObservation::m_aprioriSigmas, Isis::BundleObservation::m_corrections, numberParameters(), and Isis::toString().
|
virtual |
Calculates the sensor partials with respect to the solve parameters and populates the coeffImage matrix.
coeffImage | A matrix that will be populated with the sensor partials with respect to the solve parameters. |
measure | The measure that the partials are being computed for. |
Implements Isis::BundleObservation.
|
virtual |
Returns the observed value in (sample, line) coordinates.
This requires no modification for Csm.
measure | measure The measure that the partials are being computed for. |
deltaVal | The difference between the measured and calculate sample, line coordinates |
Implements Isis::BundleObservation.
|
virtual |
Calculates the ground partials for the line, sample currently set in the sensor model.
coeffPoint3D | A matrix that will be populated with the (line, sample) partials with respect to the ground point. |
measure | The measure that the partials are being computed for. |
coordType | Not used in this class. Coordinates are x,y,z |
Implements Isis::BundleObservation.
References _FILEINFO_, Isis::SurfacePoint::Latitudinal, Isis::SurfacePoint::LatitudinalDerivative(), Isis::SurfacePoint::One, Isis::IException::Programmer, Isis::SurfacePoint::Rectangular, Isis::SurfacePoint::Three, Isis::toString(), and Isis::SurfacePoint::Two.
|
virtual |
Calculates the sample, line residuals between the values measured in the image and the ground-to-image sample, line calculated by the sensor model.
coeffRHS | A vector that will contain the sample, line residuals. |
measure | The measure that the partials are being computed for. |
Implements Isis::BundleObservation.
References _FILEINFO_, Isis::BundleControlPoint::adjustedSurfacePoint(), Isis::BundleControlPoint::id(), and Isis::IException::User.
|
virtual |
Cannot compute target body parameters for a CSM observation, so always throws an exception.
coeffTarget | Matrix for target body partial derivatives |
measure | The measure that the partials are being computed for. |
bundleSettings | The settings for the bundle adjustment |
bundleTargetBody | QSharedPointer to the target body of the observation |
Implements Isis::BundleObservation.
References _FILEINFO_, and Isis::IException::User.
|
inherited |
void Isis::CsmBundleObservation::copy | ( | const CsmBundleObservation & | src | ) |
|
inherited |
Returns the BundleImage shared pointer associated with the given serial number.
If no BundleImage with that serial number is contained a NULL pointer is returned.
cubeSerialNumber | The serial number of the cube to be returned. |
References Isis::BundleObservation::m_cubeSerialNumberToBundleImageMap.
|
virtualinherited |
Access to image names for CorrelationMatrix to use.
References Isis::BundleObservation::m_imageNames.
|
inherited |
Accesses the observation's index.
References Isis::BundleObservation::m_index.
Referenced by Isis::IsisBundleObservation::applyParameterCorrections(), Isis::IsisBundleObservation::computeImagePartials(), and Isis::IsisBundleObservation::computeTargetPartials().
|
inherited |
Accesses the instrument id.
References Isis::BundleObservation::m_instrumentId.
Referenced by Isis::BundleObservation::BundleObservation().
|
virtual |
Returns the number of total parameters there are for solving.
The total number of parameters is equal to the number of position parameters and number of pointing parameters
Implements Isis::BundleObservation.
Referenced by bundleOutputString().
CsmBundleObservation & Isis::CsmBundleObservation::operator= | ( | const CsmBundleObservation & | src | ) |
Assignment operator.
Assigns the state of the source CsmBundleObservation to this CsmBundleObservation
CsmBundleObservation | Reference to the source CsmBundleObservation to assign from |
|
virtualinherited |
Accesses the parameter corrections.
References Isis::BundleObservation::m_corrections.
|
virtual |
Returns the list of observation parameter names.
This will always return at least one set of positions and pointings because we always output at least the center values even when not solving for them.
Implements Isis::BundleObservation.
|
virtualinherited |
Accesses the solve parameter weights.
References Isis::BundleObservation::m_weights.
|
inherited |
Sets the index for the observation.
n | Value to set the index of the observation to |
References Isis::BundleObservation::m_index.
|
virtual |
Set solve parameters.
solveSettings | The solve settings to use |
Implements Isis::BundleObservation.
References Isis::BundleObservationSolveSettings::List, Isis::BundleObservation::m_adjustedSigmas, Isis::BundleObservation::m_aprioriSigmas, Isis::BundleObservation::m_corrections, Isis::BundleObservation::m_weights, Isis::BundleObservationSolveSettings::Set, solveSettings(), and Isis::BundleObservationSolveSettings::Type.
|
virtual |
Accesses the solve settings.
Implements Isis::BundleObservation.
Referenced by setSolveSettings().
|
inherited |
Compute vtpv, the weighted sum of squares of constrained image parameter residuals.
References Isis::BundleObservation::m_corrections, Isis::BundleObservation::m_weights, and Isis::BundleObservation::vtpv().
Referenced by Isis::BundleObservation::vtpv().
|
protectedinherited |
A posteriori (adjusted) parameter sigmas.
Referenced by Isis::BundleObservation::adjustedSigmas(), Isis::BundleObservation::BundleObservation(), Isis::BundleObservation::BundleObservation(), Isis::IsisBundleObservation::bundleOutputCSV(), bundleOutputCSV(), Isis::IsisBundleObservation::bundleOutputString(), bundleOutputString(), Isis::IsisBundleObservation::setSolveSettings(), and setSolveSettings().
|
protectedinherited |
A posteriori (adjusted) parameter sigmas.
Referenced by Isis::BundleObservation::aprioriSigmas(), Isis::BundleObservation::BundleObservation(), Isis::BundleObservation::BundleObservation(), Isis::IsisBundleObservation::bundleOutputCSV(), bundleOutputCSV(), Isis::IsisBundleObservation::bundleOutputString(), bundleOutputString(), Isis::IsisBundleObservation::setSolveSettings(), and setSolveSettings().
|
protectedinherited |
Referenced by Isis::IsisBundleObservation::applyParameterCorrections(), applyParameterCorrections(), Isis::BundleObservation::BundleObservation(), Isis::BundleObservation::BundleObservation(), Isis::IsisBundleObservation::bundleOutputCSV(), bundleOutputCSV(), Isis::IsisBundleObservation::bundleOutputString(), bundleOutputString(), Isis::BundleObservation::parameterCorrections(), Isis::IsisBundleObservation::setSolveSettings(), setSolveSettings(), and Isis::BundleObservation::vtpv().
|
protectedinherited |
|
protectedinherited |
List of all cube names.
Referenced by Isis::BundleObservation::BundleObservation(), Isis::BundleObservation::BundleObservation(), and Isis::BundleObservation::imageNames().
|
protectedinherited |
Index of this observation in the set of observations. Map between cube serial number and BundleImage pointers.
Referenced by Isis::BundleObservation::BundleObservation(), Isis::BundleObservation::BundleObservation(), Isis::BundleObservation::BundleObservation(), Isis::BundleObservation::index(), and Isis::BundleObservation::setIndex().
|
protectedinherited |
Spacecraft instrument id.
Referenced by Isis::BundleObservation::BundleObservation(), Isis::BundleObservation::BundleObservation(), Isis::BundleObservation::BundleObservation(), Isis::BundleObservation::instrumentId(), and Isis::BundleObservation::operator=().
|
protectedinherited |
The shared portion of the serial numbers of all images in the observation.
Referenced by Isis::BundleObservation::BundleObservation(), Isis::BundleObservation::BundleObservation(), Isis::BundleObservation::BundleObservation(), and Isis::BundleObservation::operator=().
|
protectedinherited |
List of all cube serial numbers in observation.
Referenced by Isis::BundleObservation::BundleObservation(), Isis::BundleObservation::BundleObservation(), Isis::BundleObservation::BundleObservation(), and Isis::BundleObservation::operator=().
|
protectedinherited |
Parameter weights. Cumulative parameter correction vector.
Referenced by Isis::BundleObservation::BundleObservation(), Isis::BundleObservation::BundleObservation(), Isis::BundleObservation::parameterWeights(), Isis::IsisBundleObservation::setSolveSettings(), setSolveSettings(), and Isis::BundleObservation::vtpv().