OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
ossimWLSBundleSolution.h
Go to the documentation of this file.
1 //----------------------------------------------------------------------------
2 //
3 // License: See top level LICENSE.txt file.
4 //
5 // Author: David Hicks
6 // test
7 //
8 // Description: Weighted least squares bundle adjustment solution.
9 //----------------------------------------------------------------------------
10 #ifndef ossimWLSBundleSolution_HEADER
11 #define ossimWLSBundleSolution_HEADER
12 
13 #include <ossim/matrix/newmat.h>
14 #include <ossim/matrix/newmatap.h>
15 #include <ossim/matrix/newmatio.h>
16 #include <vector>
17 
19 
20 
22 {
23 public:
24 
29 
33  bool run(ossimAdjSolutionAttributes* solAttributes);
34 
39 
40 
41 protected:
43 
44  // Internal solution methods
45  bool solveSystem(double* d, double* c, double* delta, int jb);
46  bool recurFwd(double* d, double* c, std::vector<double>& rc, std::vector<int>& nz, int jb);
47  bool recurBack(double* d, int jb);
48  void trimv(double* pc, double* h, int pcIndex, int hIndex, int mr, std::vector<double>& sum);
49  void moveAndNegate(std::vector<double>& from, double* to, int indexFrom, int indexTo, int nElements);
50 
51 };
52 
53 #endif // #ifndef ossimWLSBundleSolution_HEADER
#define OSSIM_DLL