Isis Developer Reference
BundleResults.h
Go to the documentation of this file.
1#ifndef BundleResults_h
2#define BundleResults_h
3
10/* SPDX-License-Identifier: CC0-1.0 */
11
12// Qt Library
13#include <QList>
14#include <QObject>
15#include <QPair>
16#include <QString>
17#include <QVector>
18
19// Isis Library
20#include "BundleControlPoint.h"
23#include "BundleSettings.h"
24#include "ControlNet.h"
25#include "Distance.h"
26#include "LidarData.h"
28#include "PvlObject.h"
29#include "Statistics.h" // ???
30#include "SurfacePoint.h"
31
32// Qt Library
33class QDataStream;
34class QUuid;
35class QXmlStreamWriter;
36class QXmlStreamReader;
37
38namespace Isis {
39 // Isis Library
40 class ControlNet;
42 class FileName;
43 class Project;// ??? does xml stuff need project???
44 class PvlObject;
45 class SerialNumberList;
47
90 class BundleResults : public QObject {
91 Q_OBJECT
92 public:
93 BundleResults(QObject *parent = 0);
94 BundleResults(QXmlStreamReader *xmlReader,
95 QObject *parent = 0);
96 void readBundleResults(QXmlStreamReader *xmlReader);
97 void readCorrelationMatrix(QXmlStreamReader *xmlReader);
98 void readGenStatsValues(QXmlStreamReader *xmlReader);
99 void readRms(QXmlStreamReader *xmlReader);
100 void readImageResidualsLists(QXmlStreamReader *xmlReader);
101 void readSigmasLists(QXmlStreamReader *xmlReader);
102 void readStatsToList(QList<Statistics> &list, QXmlStreamReader *xmlReader);
103 void readStatsToVector(QVector<Statistics> &vec, QXmlStreamReader *xmlReader);
104 void readMinMaxSigmas(QXmlStreamReader *xmlReader);
105 void readSigma(Distance &dist, QString &pointId, QXmlStreamReader *xmlReader);
106 void readMaxLikelihoodEstimation(QXmlStreamReader *xmlReader);
107 BundleResults(const BundleResults &src);
110 void initialize();
111
112 // mutators and computation methods
113 void resizeSigmaStatisticsVectors(int numberImages);
114 void setRmsImageResidualLists(QList<Statistics> rmsImageLineResiduals,
115 QList<Statistics> rmsImageSampleResiduals,
116 QList<Statistics> rmsImageResiduals);
118 QVector<Statistics> rmsImageSampleResiduals,
119 QVector<Statistics> rmsImageResiduals);
121 QList<Statistics> rmsLidarImageSampleResiduals,
122 QList<Statistics> rmsLidarImageResiduals);
123 void setSigmaCoord1Range(Distance minCoord1Dist, Distance maxCoord1Dist,
124 QString minCoord1PointId, QString maxCoord1PointId);
125 void setSigmaCoord2Range(Distance minCoord2Dist, Distance maxCoord2Dist,
126 QString minCoord2PointId, QString maxCoord2PointId);
127 void setSigmaCoord3Range(Distance minCoord3Dist, Distance maxCoord3Dist,
128 QString minCoord3PointId, QString maxCoord3PointId);
129 void setRmsFromSigmaStatistics(double rmsFromSigmaCoord1Stats,
130 double rmsFromSigmaCoord2Stats,
131 double rmsFromSigmaCoord3Stats);
133 QList< QPair< MaximumLikelihoodWFunctions::Model, double > > modelsWithQuantiles);
135 void initializeResidualsProbabilityDistribution(unsigned int nodes = 20);
136 void initializeProbabilityDistribution(unsigned int nodes = 20);
138 void addProbabilityDistributionObservation(double obsValue);
139 void addProbabilityDistributionObservation(double obsValue, bool residuals);
141
143 int numberFixedPoints() const;
144 void incrementHeldImages();
145 int numberHeldImages() const;
147 int numberIgnoredPoints() const; // currently unused ???
148#if 0
149 double computeRejectionLimit(ControlNet *p_Cnet,
150 double outlierRejectionMultiplier,
151 int numObservations);
152#endif
154#if 0
155 double computeResiduals(
156 ControlNet *pCnet,
157 std::vector< boost::numeric::ublas::bounded_vector< double, 3 > > pointWeights,
158 std::vector< boost::numeric::ublas::bounded_vector< double, 3 > > pointCorrections,
159 LinearAlgebra::Vector image_Corrections,
160 std::vector< double > imageParameterWeights,
161 int numImagePartials,
162 int rank);
163#endif
164 void setRmsXYResiduals(double rx, double ry, double rxy);
165#if 0
166 bool flagOutliers(ControlNet *pCnet);
167#endif
170 void setNumberLidarImageObservations(int numberLidarObservations);
172 void setNumberImageParameters(int numberParameters); // ??? this is the same value an m_nRank
173 void setNumberConstrainedPointParameters(int numberParameters);
174 void setNumberConstrainedLidarPointParameters(int numberParameters);
176 void incrementNumberConstrainedPointParameters(int incrementAmount);
178 void incrementNumberConstrainedImageParameters(int incrementAmount);
180 void incrementNumberConstrainedTargetParameters(int incrementAmount);
181 void setNumberLidarRangeConstraints(int numberLidarRangeConstraints);
182 void setNumberUnknownParameters(int numberParameters);
184 void computeSigma0(double dvtpv, BundleSettings::ConvergenceCriteria criteria);
186 void setSigma0(double sigma0);
187 void setElapsedTime(double time);
188 void setElapsedTimeErrorProp(double time);
189 void setConverged(bool converged); // or initialze method
190 void setBundleControlPoints(QVector<BundleControlPointQsp> controlPoints);
191 void setBundleLidarPoints(QVector<BundleLidarControlPointQsp> lidarPoints);
193 void setOutputLidarData(LidarDataQsp outLidarData);
194 void setIterations(int iterations);
196
197 // Accessors...
198 QList<Statistics> rmsImageSampleResiduals() const;
199 QList<Statistics> rmsImageLineResiduals() const;
200 QList<Statistics> rmsImageResiduals() const;
201 QList<Statistics> rmsLidarImageSampleResiduals() const;
202 QList<Statistics> rmsLidarImageLineResiduals() const;
203 QList<Statistics> rmsLidarImageResiduals() const;
204 QVector<Statistics> rmsImageXSigmas() const; // currently unused ???
205 QVector<Statistics> rmsImageYSigmas() const; // currently unused ???
206 QVector<Statistics> rmsImageZSigmas() const; // currently unused ???
207 QVector<Statistics> rmsImageRASigmas() const; // currently unused ???
208 QVector<Statistics> rmsImageDECSigmas() const; // currently unused ???
209 QVector<Statistics> rmsImageTWISTSigmas() const; // currently unused ???
210 // *** TODO *** Will we ever want to request a specific coordinate type?
211 // (Lat or X) or just whatever is the designated type?
213
220 QString maxSigmaCoord1PointId() const;
221 QString minSigmaCoord1PointId() const;
222 QString minSigmaCoord2PointId() const;
223 QString maxSigmaCoord2PointId() const;
224 QString minSigmaCoord3PointId() const;
225 QString maxSigmaCoord3PointId() const;
226 double sigmaCoord1StatisticsRms() const;
227 double sigmaCoord2StatisticsRms() const;
228 double sigmaCoord3StatisticsRms() const;
229
230 double rmsRx() const; // currently unused ???
231 double rmsRy() const; // currently unused ???
232 double rmsRxy() const; // currently unused ???
233 double rejectionLimit() const;
234 int numberRejectedObservations() const;
235 int numberObservations() const;
236 int numberImageObservations() const;
238
239 int numberImageParameters() const; // ??? this is the same value an m_nRank
244 int numberUnknownParameters() const;
245 int degreesOfFreedom() const;
246 double sigma0() const;
247 double elapsedTime() const;
248 double elapsedTimeErrorProp() const;
249 bool converged() const; // or initialze method
250 QVector<BundleControlPointQsp> &bundleControlPoints();
251 QVector<BundleLidarControlPointQsp> &bundleLidarControlPoints();
254 int iterations() const;
256
258 int maximumLikelihoodModelIndex() const;
263 double maximumLikelihoodModelQuantile(int modelIndex) const;
264
265 QList< QPair< MaximumLikelihoodWFunctions, double > > maximumLikelihoodModels() const;
266
268 SerialNumberList *pSnList);
269
270 // Correlation Matrix accessors for ipce and mutators for bundle adjust.
273 void setCorrMatImgsAndParams(QMap<QString, QStringList> imgsAndParams);
274
275 // TODO: does xml stuff need project???
276 void save(QXmlStreamWriter &stream, const Project *project) const;
277
279
281 // Currently set but unused
284
285 // The following three members are set but unused.
289
291 // TODO:??? reorder read/write data stream, init, copy constructor, operator=
304 double m_sigma0;
308
309 // Variables for output methods in BundleSolutionInfo
310
311 QVector<BundleControlPointQsp> m_bundleControlPoints;
320 QVector<BundleLidarControlPointQsp> m_bundleLidarPoints;
331 //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
332 // variables set in computeBundleResults()
333 //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
334 // QList??? jigsaw apptest gives - ASSERT failure in QList<T>::operator[]: "index out of range",
335 QList<Statistics> m_rmsImageSampleResiduals;
337 QList<Statistics> m_rmsImageLineResiduals;
339 QList<Statistics> m_rmsImageResiduals;
346 QList<Statistics> m_rmsLidarImageResiduals;
350 QVector<Statistics> m_rmsImageXSigmas; // unset and unused ???
352 QVector<Statistics> m_rmsImageYSigmas; // unset and unused ???
354 QVector<Statistics> m_rmsImageZSigmas; // unset and unused ???
356 QVector<Statistics> m_rmsImageRASigmas; // unset and unused ???
358 QVector<Statistics> m_rmsImageDECSigmas; // unset and unused ???
360 QVector<Statistics> m_rmsImageTWISTSigmas; // unset and unused ???
361
368
375
379
380 //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
381 // variables for maximum likelihood estimation
382 //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
383
385 QList< QPair< MaximumLikelihoodWFunctions, double > > m_maximumLikelihoodFunctions;
386
412 private:
413 BundleResults *m_xmlHandlerBundleResults;
414 QString m_xmlHandlerCharacters;
415 int m_xmlHandlerResidualsListSize;
416 int m_xmlHandlerSampleResidualsListSize;
417 int m_xmlHandlerLineResidualsListSize;
418 int m_xmlHandlerXSigmasListSize;
419 int m_xmlHandlerYSigmasListSize;
420 int m_xmlHandlerZSigmasListSize;
421 int m_xmlHandlerRASigmasListSize;
422 int m_xmlHandlerDECSigmasListSize;
423 int m_xmlHandlerTWISTSigmasListSize;
424 QList<Statistics *> m_xmlHandlerStatisticsList;
425 StatCumProbDistDynCalc *m_xmlHandlerCumProCalc;
426
427 QString m_xmlHandlerCorrelationImageId;
428 QStringList m_xmlHandlerCorrelationParameterList;
429 QMap<QString, QStringList> m_xmlHandlerCorrelationMap;
430};
431
432};
433
435
436#endif // BundleResults_h
Q_DECLARE_METATYPE(Isis::BundleResults)
This class is a container class for BundleObservations.
Definition BundleObservationVector.h:57
A container class for statistical results from a BundleAdjust solution.
Definition BundleResults.h:90
void addProbabilityDistributionObservation(double obsValue)
Adds an observation to the cumulative probability distribution of |R^2 residuals|.
Definition BundleResults.cpp:966
void incrementNumberConstrainedImageParameters(int incrementAmount)
Increase the number of constrained image parameters.
Definition BundleResults.cpp:1173
~BundleResults()
Destroys this BundleResults object.
Definition BundleResults.cpp:544
QString m_minSigmaCoord1PointId
The minimum sigma coordinate 1 point id.
Definition BundleResults.h:369
QVector< Statistics > m_rmsImageTWISTSigmas
< The root mean square image twist sigmas.
Definition BundleResults.h:360
QVector< Statistics > m_rmsImageXSigmas
Definition BundleResults.h:350
double elapsedTimeErrorProp() const
Returns the elapsed time for error propagation.
Definition BundleResults.cpp:1824
int numberRejectedObservations() const
Returns the number of observation that were rejected.
Definition BundleResults.cpp:1694
int m_numberUnknownParameters
total number of parameters to solve for
Definition BundleResults.h:297
QString minSigmaCoord2PointId() const
Returns the minimum sigma point id for coordinate 2.
Definition BundleResults.cpp:1584
void readMinMaxSigmas(QXmlStreamReader *xmlReader)
Definition BundleResults.cpp:371
void setSigma0(double sigma0)
Sets the sigma0.
Definition BundleResults.cpp:1281
double rejectionLimit() const
Returns the rejection limit.
Definition BundleResults.cpp:1684
int m_degreesOfFreedom
degrees of freedom
Definition BundleResults.h:303
QList< Statistics > m_rmsLidarImageResiduals
RMS image lidar sample & line residual stats for each image in the bundle
Definition BundleResults.h:346
int m_numberFixedPoints
number of 'fixed' (ground) points (define)
Definition BundleResults.h:280
void incrementNumberConstrainedPointParameters(int incrementAmount)
Increase the number of contrained point parameters.
Definition BundleResults.cpp:1155
double rmsRxy() const
Returns the RMS of the x and y residuals.
Definition BundleResults.cpp:1674
QList< Statistics > rmsImageSampleResiduals() const
Returns the list of RMS image sample residuals statistics.
Definition BundleResults.cpp:1384
QList< Statistics > m_rmsLidarImageSampleResiduals
List of RMS lidar sample residual stats for each image in the bundle
Definition BundleResults.h:342
int m_numberConstrainedTargetParameters
number of constrained target parameters
Definition BundleResults.h:302
BundleObservationVector m_observations
The vector of BundleObservations from BundleAdjust.
Definition BundleResults.h:327
BundleResults(QObject *parent=0)
Constructs a BundleResults object.
Definition BundleResults.cpp:51
ControlNetQsp outputControlNet() const
Returns a shared pointer to the output control network.
Definition BundleResults.cpp:1866
int numberObservations() const
Returns the number of observations.
Definition BundleResults.cpp:1704
void setElapsedTime(double time)
Sets the elapsed time for the bundle adjustment.
Definition BundleResults.cpp:1291
Distance m_maxSigmaCoord3Distance
The maximum sigma radius distance.
Definition BundleResults.h:367
MaximumLikelihoodWFunctions maximumLikelihoodModelWFunc(int modelIndex) const
Returns the maximum likelihood model at the given index.
Definition BundleResults.cpp:1966
void incrementHeldImages()
Increases the number of 'held' images.
Definition BundleResults.cpp:1012
int m_numberLidarImageObservations
lidar image coords. (2 per measure)
Definition BundleResults.h:294
double m_maximumLikelihoodMedianR2Residuals
Median of R^2 residuals.
Definition BundleResults.h:410
double sigmaCoord3StatisticsRms() const
Returns the RMS of the adjusted sigmas for coordinate 3.
Definition BundleResults.cpp:1644
double m_rmsXResiduals
rms of x residuals
Definition BundleResults.h:286
double m_rmsSigmaCoord3Stats
rms of adjusted Radius sigmas
Definition BundleResults.h:378
void readGenStatsValues(QXmlStreamReader *xmlReader)
Definition BundleResults.cpp:158
void initializeProbabilityDistribution(unsigned int nodes=20)
Initializes or resets the cumulative probability distribution of |R^2 residuals|.
Definition BundleResults.cpp:945
void readRms(QXmlStreamReader *xmlReader)
Definition BundleResults.cpp:224
void incrementIgnoredPoints()
Increase the number of ignored points.
Definition BundleResults.cpp:1030
void incrementFixedPoints()
Increase the number of 'fixed' (ground) points.
Definition BundleResults.cpp:994
void setBundleControlPoints(QVector< BundleControlPointQsp > controlPoints)
Sets the bundle control point vector.
Definition BundleResults.cpp:1321
void readStatsToList(QList< Statistics > &list, QXmlStreamReader *xmlReader)
Definition BundleResults.cpp:343
void setNumberConstrainedPointParameters(int numberParameters)
Set number of contrained point parameters.
Definition BundleResults.cpp:1127
void setBundleLidarPoints(QVector< BundleLidarControlPointQsp > lidarPoints)
Sets the bundle lidar point vector.
Definition BundleResults.cpp:1331
double sigma0() const
Returns the Sigma0 of the bundle adjustment.
Definition BundleResults.cpp:1804
QVector< Statistics > m_rmsImageZSigmas
< The root mean square image z sigmas.
Definition BundleResults.h:354
void setIterations(int iterations)
Sets the number of iterations taken by the BundleAdjust.
Definition BundleResults.cpp:1361
bool converged() const
Returns whether or not the bundle adjustment converged.
Definition BundleResults.cpp:1834
Distance m_maxSigmaCoord1Distance
The maximum sigma latitude distance.
Definition BundleResults.h:363
double maximumLikelihoodModelQuantile(int modelIndex) const
Returns the quantile of the maximum likelihood model at the given index.
Definition BundleResults.cpp:1978
int m_numberImageObservations
photogrammetry image coords. (2 per measure)
Definition BundleResults.h:293
void setSigmaCoord1Range(Distance minCoord1Dist, Distance maxCoord1Dist, QString minCoord1PointId, QString maxCoord1PointId)
Sets the min and max sigma distances and point ids for coordinate 1.
Definition BundleResults.cpp:811
void incrementMaximumLikelihoodModelIndex()
Increases the value that indicates which stage the maximum likelihood adjustment is currently on.
Definition BundleResults.cpp:986
QVector< Statistics > rmsImageDECSigmas() const
Returns the list of RMS image declination sigma statistics.
Definition BundleResults.cpp:1484
QString m_maxSigmaCoord1PointId
The maximum sigma coordinate 1 point id.
Definition BundleResults.h:370
QVector< Statistics > m_rmsImageYSigmas
< The root mean square image y sigmas.
Definition BundleResults.h:352
QList< Statistics > rmsLidarImageSampleResiduals() const
Returns the list of RMS image lidar sample residuals statistics.
Definition BundleResults.cpp:1414
void setOutputControlNet(ControlNetQsp outNet)
Sets the output ControlNet.
Definition BundleResults.cpp:1341
int m_iterations
The number of iterations taken by BundleAdjust.
Definition BundleResults.h:325
double m_rmsXYResiduals
rms of all x and y residuals
Definition BundleResults.h:288
int m_numberLidarRangeConstraintEquations
Definition BundleResults.h:296
void setSigmaCoord2Range(Distance minCoord2Dist, Distance maxCoord2Dist, QString minCoord2PointId, QString maxCoord2PointId)
Sets the min and max sigma distances and point ids for coordinate 2.
Definition BundleResults.cpp:828
int numberConstrainedPointParameters() const
Returns the number of constrained point parameters.
Definition BundleResults.cpp:1744
double rmsRy() const
Returns the RMS of the y residuals.
Definition BundleResults.cpp:1664
void resetNumberConstrainedImageParameters()
Resets the number of constrained image parameters to 0.
Definition BundleResults.cpp:1163
int m_numberIgnoredPoints
number of ignored points
Definition BundleResults.h:282
void computeDegreesOfFreedom()
Computes the degrees of freedom of the bundle adjustment and stores it internally.
Definition BundleResults.cpp:1219
Distance m_minSigmaCoord2Distance
The minimum sigma longitude distance.
Definition BundleResults.h:364
int iterations() const
Returns the number of iterations taken by the BundleAdjust.
Definition BundleResults.cpp:1893
CorrelationMatrix correlationMatrix() const
Returns the Correlation Matrix.
Definition BundleResults.cpp:1996
void setNumberRejectedObservations(int numberObservations)
Sets the number of rejected observations.
Definition BundleResults.cpp:1074
SurfacePoint::CoordinateType coordTypeReports()
Definition BundleResults.cpp:2030
QString minSigmaCoord1PointId() const
Returns the minimum sigma point id for coordinate 1.
Definition BundleResults.cpp:1564
double m_rejectionLimit
current rejection limit
Definition BundleResults.h:290
QVector< Statistics > rmsImageYSigmas() const
Returns the list of RMS image y sigma statistics.
Definition BundleResults.cpp:1454
QString m_minSigmaCoord2PointId
The minimum sigma coordinate 2 point id.
Definition BundleResults.h:371
void maximumLikelihoodSetUp(QList< QPair< MaximumLikelihoodWFunctions::Model, double > > modelsWithQuantiles)
This method steps up the maximum likelihood estimation solution.
Definition BundleResults.cpp:878
void save(QXmlStreamWriter &stream, const Project *project) const
Saves the BundleResults object to an XML file.
Definition BundleResults.cpp:2048
void readBundleResults(QXmlStreamReader *xmlReader)
Definition BundleResults.cpp:83
int m_numberConstrainedImageParameters
number of constrained image parameters
Definition BundleResults.h:299
int numberIgnoredPoints() const
Returns the number of ignored points.
Definition BundleResults.cpp:1040
QVector< BundleControlPointQsp > & bundleControlPoints()
Returns a reference to the BundleControlPoint vector.
Definition BundleResults.cpp:1844
void setCorrMatImgsAndParams(QMap< QString, QStringList > imgsAndParams)
Set the images and their associated parameters of the correlation matrix.
Definition BundleResults.cpp:2024
Distance maxSigmaCoord2Distance() const
Returns the maximum sigma distance for coordinate 2.
Definition BundleResults.cpp:1534
QString m_minSigmaCoord3PointId
The minimum sigma coordinate 3 point id.
Definition BundleResults.h:373
int numberUnknownParameters() const
Returns the number of unknown parameters.
Definition BundleResults.cpp:1784
void addResidualsProbabilityDistributionObservation(double obsValue)
Adds an observation to the cumulative probability distribution of residuals used for reporting.
Definition BundleResults.cpp:977
QVector< BundleLidarControlPointQsp > & bundleLidarControlPoints()
Returns a reference to the BundleLidarControlPoint vector.
Definition BundleResults.cpp:1854
int m_numberImageParameters
number of image parameters
Definition BundleResults.h:298
double m_sigma0
std deviation of unit weight
Definition BundleResults.h:304
int numberImageParameters() const
Returns the total number of image parameters.
Definition BundleResults.cpp:1734
QList< Statistics > rmsLidarImageLineResiduals() const
Returns the list of RMS image lidar line residuals statistics.
Definition BundleResults.cpp:1424
int m_maximumLikelihoodIndex
This count keeps track of which stage of the maximum likelihood adjustment the bundle is currently on...
Definition BundleResults.h:398
QList< Statistics > m_rmsImageLineResiduals
List of RMS image line residual statistics for each image in the bundle
Definition BundleResults.h:337
int numberMaximumLikelihoodModels() const
Returns how many maximum likelihood models were used in the bundle adjustment.
Definition BundleResults.cpp:1913
StatCumProbDistDynCalc * m_cumProRes
This class keeps track of the cumulative probability distribution of residuals (in unweighted pixels)...
Definition BundleResults.h:406
void setNumberLidarRangeConstraints(int numberLidarRangeConstraints)
Sets the total number of lidar range constraints.
Definition BundleResults.cpp:1211
int maximumLikelihoodModelIndex() const
Returns which step the bundle adjustment is on.
Definition BundleResults.cpp:1923
LidarDataQsp outputLidarData() const
Returns a shared pointer to the output LidarData object.
Definition BundleResults.cpp:1883
int m_numberConstrainedPointParameters
number of constrained point parameters
Definition BundleResults.h:300
int m_numberConstrainedLidarPointParameters
lidar points
Definition BundleResults.h:301
int m_numberRejectedObservations
number of rejected image coordinate observations
Definition BundleResults.h:295
int numberHeldImages() const
Returns the number of 'held' images.
Definition BundleResults.cpp:1022
double sigmaCoord2StatisticsRms() const
Returns the RMS of the adjusted sigmas for coordinate 2.
Definition BundleResults.cpp:1634
StatCumProbDistDynCalc * m_cumPro
This class will be used to calculate the cumulative probability distribution of |R^2 residuals|,...
Definition BundleResults.h:401
int m_numberObservations
number of image coordinate observations
Definition BundleResults.h:292
void setRejectionLimit(double rejectionLimit)
Sets the rejection limit.
Definition BundleResults.cpp:1064
Distance minSigmaCoord3Distance() const
Returns the minimum sigma distance for coordinate 3.
Definition BundleResults.cpp:1544
int numberLidarImageObservations() const
Returns the number of lidar observations.
Definition BundleResults.cpp:1724
void incrementNumberConstrainedTargetParameters(int incrementAmount)
Increases the number of constrained target parameters.
Definition BundleResults.cpp:1191
QVector< BundleControlPointQsp > m_bundleControlPoints
The vector of BundleControlPoints from BundleAdjust.
Definition BundleResults.h:311
void setOutputLidarData(LidarDataQsp outLidarData)
Sets the output LidarData object.
Definition BundleResults.cpp:1351
double m_rmsSigmaCoord2Stats
rms of adjusted Longitude sigmas
Definition BundleResults.h:377
void setNumberImageObservations(int numberObservations)
Sets the number of photogrammetric image observations.
Definition BundleResults.cpp:1097
void readSigma(Distance &dist, QString &pointId, QXmlStreamReader *xmlReader)
Definition BundleResults.cpp:404
void setRmsImageResidualLists(QList< Statistics > rmsImageLineResiduals, QList< Statistics > rmsImageSampleResiduals, QList< Statistics > rmsImageResiduals)
Sets the root mean square image residual Statistics lists.
Definition BundleResults.cpp:778
double maximumLikelihoodMedianR2Residuals() const
Returns the median of the |R^2 residuals|.
Definition BundleResults.cpp:1954
int numberFixedPoints() const
Returns the number of 'fixed' (ground) points.
Definition BundleResults.cpp:1004
QString maxSigmaCoord1PointId() const
Returns the maximum sigma point id for coordinate 1.
Definition BundleResults.cpp:1574
int numberImageObservations() const
Returns the number of observations.
Definition BundleResults.cpp:1714
LidarDataQsp m_outLidarData
Output lidar data from BundleAdjust.
Definition BundleResults.h:323
void setNumberLidarImageObservations(int numberLidarObservations)
Sets the number of lidar observations.
Definition BundleResults.cpp:1107
void resetNumberConstrainedPointParameters()
Resets the number of contrained point parameters to 0.
Definition BundleResults.cpp:1145
void setNumberImageParameters(int numberParameters)
Sets the number of image parameters.
Definition BundleResults.cpp:1117
int numberConstrainedTargetParameters() const
Return the number of constrained target parameters.
Definition BundleResults.cpp:1764
StatCumProbDistDynCalc residualsCumulativeProbabilityDistribution() const
Returns the cumulative probability distribution of the residuals used for reporting.
Definition BundleResults.cpp:1944
double elapsedTime() const
Returns the elapsed time for the bundle adjustment.
Definition BundleResults.cpp:1814
QList< Statistics > m_rmsLidarImageLineResiduals
List of RMS lidar line residual stats for each image in the bundle
Definition BundleResults.h:344
QList< Statistics > rmsImageResiduals() const
Returns the list of RMS image residuals statistics.
Definition BundleResults.cpp:1404
Distance m_maxSigmaCoord2Distance
The maximum sigma longitude distance.
Definition BundleResults.h:365
bool setNumberHeldImages(SerialNumberList pHeldSnList, SerialNumberList *pSnList)
QVector< Statistics > m_rmsImageRASigmas
< The root mean square image right ascension sigmas.
Definition BundleResults.h:356
const BundleObservationVector & observations() const
Returns a reference to the observations used by the BundleAdjust.
Definition BundleResults.cpp:1903
Distance m_minSigmaCoord3Distance
The minimum sigma radius distance.
Definition BundleResults.h:366
ControlNetQsp m_outNet
The output control net from BundleAdjust.
Definition BundleResults.h:321
void initialize()
Initializes the BundleResults to a default state where all numeric members are set to 0 or another de...
Definition BundleResults.cpp:649
Distance minSigmaCoord1Distance() const
Returns the minimum sigma distance for coordinate 1.
Definition BundleResults.cpp:1504
void setNumberUnknownParameters(int numberParameters)
Sets the total number of parameters to solve for.
Definition BundleResults.cpp:1201
void readImageResidualsLists(QXmlStreamReader *xmlReader)
Definition BundleResults.cpp:289
void readStatsToVector(QVector< Statistics > &vec, QXmlStreamReader *xmlReader)
Definition BundleResults.cpp:357
void setSigmaCoord3Range(Distance minCoord3Dist, Distance maxCoord3Dist, QString minCoord3PointId, QString maxCoord3PointId)
Sets the min and max sigma distances and point ids for coordinate 3.
Definition BundleResults.cpp:845
QString minSigmaCoord3PointId() const
Returns the minimum sigma point id for coordinate 3.
Definition BundleResults.cpp:1604
void setNumberConstrainedLidarPointParameters(int numberParameters)
Set number of contrained point parameters.
Definition BundleResults.cpp:1137
QVector< BundleLidarControlPointQsp > m_bundleLidarPoints
Definition BundleResults.h:320
double rmsRx() const
Returns the RMS of the x residuals.
Definition BundleResults.cpp:1654
void setObservations(BundleObservationVector observations)
Sets the vector of BundleObservations.
Definition BundleResults.cpp:1371
void initializeResidualsProbabilityDistribution(unsigned int nodes=20)
Initializes or resets the cumulative probability distribution of residuals used for reporting.
Definition BundleResults.cpp:955
void setRmsFromSigmaStatistics(double rmsFromSigmaCoord1Stats, double rmsFromSigmaCoord2Stats, double rmsFromSigmaCoord3Stats)
Sets the root mean square values of the adjusted sigmas for all three coordinates.
Definition BundleResults.cpp:861
void setRmsImageResidualLists(QVector< Statistics > rmsImageLineResiduals, QVector< Statistics > rmsImageSampleResiduals, QVector< Statistics > rmsImageResiduals)
void setRmsXYResiduals(double rx, double ry, double rxy)
Sets the root mean square of the x and y residuals.
Definition BundleResults.cpp:1052
QList< Statistics > rmsImageLineResiduals() const
Returns the list of RMS image line residuals statistics.
Definition BundleResults.cpp:1394
double m_elapsedTime
elapsed time for bundle
Definition BundleResults.h:305
double m_elapsedTimeErrorProp
elapsed time for error propagation
Definition BundleResults.h:306
QVector< Statistics > rmsImageRASigmas() const
Returns the list of RMS image right ascension sigma statistics.
Definition BundleResults.cpp:1474
void setNumberObservations(int numberObservations)
Sets the number of observations.
Definition BundleResults.cpp:1084
int numberLidarRangeConstraintEquations() const
Return the number of lidar range constraint equations.
Definition BundleResults.cpp:1774
QVector< Statistics > rmsImageXSigmas() const
Returns the list of RMS image x sigma statistics.
Definition BundleResults.cpp:1444
void printMaximumLikelihoodTierInformation()
Prints out information about which tier the solution is in and the status of the residuals.
Definition BundleResults.cpp:920
BundleResults & operator=(const BundleResults &src)
Assignment operator for BundleResults.
Definition BundleResults.cpp:564
void resizeSigmaStatisticsVectors(int numberImages)
Resizes all image sigma vectors.
Definition BundleResults.cpp:749
CorrelationMatrix * m_correlationMatrix
The correlation matrix from the BundleAdjust.
Definition BundleResults.h:278
QList< QPair< MaximumLikelihoodWFunctions, double > > maximumLikelihoodModels() const
void setDegreesOfFreedom(double degreesOfFreedom)
Sets the degrees of freedom.
Definition BundleResults.cpp:1271
Distance m_minSigmaCoord1Distance
The minimum sigma latitude distance.
Definition BundleResults.h:362
Distance maxSigmaCoord3Distance() const
Returns the maximum sigma distance for coordinate 3.
Definition BundleResults.cpp:1554
Distance maxSigmaCoord1Distance() const
Returns the maximum sigma distance for coordinate 1.
Definition BundleResults.cpp:1514
double m_rmsYResiduals
rms of y residuals
Definition BundleResults.h:287
QString m_maxSigmaCoord2PointId
The maximum sigma coordinate2 point id.
Definition BundleResults.h:372
QList< QPair< MaximumLikelihoodWFunctions, double > > m_maximumLikelihoodFunctions
< The maximum likelihood models and their quantiles.
Definition BundleResults.h:385
void setCorrMatCovFileName(FileName name)
Set the covariance file name for the matrix used to calculate the correlation matrix.
Definition BundleResults.cpp:2013
QString m_maxSigmaCoord3PointId
The maximum sigma coordinate 3 point id.
Definition BundleResults.h:374
bool m_converged
Definition BundleResults.h:307
QList< Statistics > m_rmsImageSampleResiduals
List of RMS image sample residual statistics for each image in the bundle
Definition BundleResults.h:335
QVector< Statistics > rmsImageTWISTSigmas() const
Returns the list of RMS image twist sigma statistics.
Definition BundleResults.cpp:1494
void setRmsLidarImageResidualLists(QList< Statistics > rmsLidarImageLineResiduals, QList< Statistics > rmsLidarImageSampleResiduals, QList< Statistics > rmsLidarImageResiduals)
Sets the root mean square lidar image residual Statistics lists.
Definition BundleResults.cpp:794
QString maxSigmaCoord3PointId() const
Returns the maximum sigma point id for coordinate 3.
Definition BundleResults.cpp:1614
void computeSigma0(double dvtpv, BundleSettings::ConvergenceCriteria criteria)
Computes the sigma0 and stores it internally.
Definition BundleResults.cpp:1247
QList< Statistics > m_rmsImageResiduals
RMS image sample and line residual statistics for each image in the bundle
Definition BundleResults.h:339
QString maxSigmaCoord2PointId() const
Returns the maximum sigma point id for coordinate 2.
Definition BundleResults.cpp:1594
void readMaxLikelihoodEstimation(QXmlStreamReader *xmlReader)
Definition BundleResults.cpp:419
void readCorrelationMatrix(QXmlStreamReader *xmlReader)
Definition BundleResults.cpp:129
void readSigmasLists(QXmlStreamReader *xmlReader)
Definition BundleResults.cpp:316
int numberConstrainedImageParameters() const
Returns the number of constrained image parameters.
Definition BundleResults.cpp:1754
void setElapsedTimeErrorProp(double time)
Sets the elapsed time for error propegation.
Definition BundleResults.cpp:1301
QVector< Statistics > rmsImageZSigmas() const
Returns the list of RMS image z sigma statistics.
Definition BundleResults.cpp:1464
QList< Statistics > rmsLidarImageResiduals() const
Returns the list of RMS image lidar residuals statistics.
Definition BundleResults.cpp:1434
int m_numberHeldImages
number of 'held' images (define)
Definition BundleResults.h:283
double sigmaCoord1StatisticsRms() const
Returns the RMS of the adjusted sigmas for coordinate 1.
Definition BundleResults.cpp:1624
void setConverged(bool converged)
Sets if the bundle adjustment converged.
Definition BundleResults.cpp:1311
Distance minSigmaCoord2Distance() const
Returns the minimum sigma distance for coordinate 2.
Definition BundleResults.cpp:1524
void addProbabilityDistributionObservation(double obsValue, bool residuals)
void resetNumberConstrainedTargetParameters()
Resets the number of constrained target parameters to 0.
Definition BundleResults.cpp:1181
double m_rmsSigmaCoord1Stats
rms of adjusted Latitude sigmas
Definition BundleResults.h:376
StatCumProbDistDynCalc cumulativeProbabilityDistribution() const
Returns the cumulative probability distribution of the |R^2 residuals|.
Definition BundleResults.cpp:1934
int degreesOfFreedom() const
Returns the degrees of freedom.
Definition BundleResults.cpp:1794
QVector< Statistics > m_rmsImageDECSigmas
< The root mean square image declination sigmas.
Definition BundleResults.h:358
ConvergenceCriteria
This enum defines the options for the bundle adjustment's convergence.
Definition BundleSettings.h:186
a control network
Definition ControlNet.h:258
This is a container for the correlation matrix that comes from a bundle adjust.
Definition CorrelationMatrix.h:61
Distance measurement, usually in meters.
Definition Distance.h:34
File name manipulation and expansion.
Definition FileName.h:100
boost::numeric::ublas::vector< double > Vector
Definition for an Isis::LinearAlgebra::Vector of doubles.
Definition LinearAlgebra.h:132
Class provides maximum likelihood estimation functions for robust parameter estimation,...
Definition MaximumLikelihoodWFunctions.h:49
The main project for ipce.
Definition Project.h:287
Contains Pvl Groups and Pvl Objects.
Definition PvlObject.h:61
Serial Number list generator.
Definition SerialNumberList.h:64
This class is used to approximate cumulative probibility distributions of a stream of observations wi...
Definition StatCumProbDistDynCalc.h:63
CoordinateType
Defines the coordinate typ, units, and coordinate index for some of the output methods.
Definition SurfacePoint.h:139
This is free and unencumbered software released into the public domain.
Definition BoxcarCachingAlgorithm.h:13
This is free and unencumbered software released into the public domain.
Definition Apollo.h:16