bazar  1.3.1
ls_step_solver.h
Go to the documentation of this file.
1 /*
2 Copyright 2005, 2006 Computer Vision Lab,
3 Ecole Polytechnique Federale de Lausanne (EPFL), Switzerland.
4 All rights reserved.
5 
6 This file is part of BazAR.
7 
8 BazAR is free software; you can redistribute it and/or modify it under the
9 terms of the GNU General Public License as published by the Free Software
10 Foundation; either version 2 of the License, or (at your option) any later
11 version.
12 
13 BazAR is distributed in the hope that it will be useful, but WITHOUT ANY
14 WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
15 PARTICULAR PURPOSE. See the GNU General Public License for more details.
16 
17 You should have received a copy of the GNU General Public License along with
18 BazAR; if not, write to the Free Software Foundation, Inc., 51 Franklin
19 Street, Fifth Floor, Boston, MA 02110-1301, USA
20 */
21 #ifndef LS_STEP_SOLVER_H
22 #define LS_STEP_SOLVER_H
23 
24 #include <cxcore.h>
25 
27 
28 
30 {
31 public:
32  ls_step_solver(int state_size, int maximum_scalar_measure_number);
34  void resize(int state_size, int maximum_scalar_measure_number);
35 
36  // J data are destroyed
37  // return true on success, false on failure
38  bool qr_solve(CvMat * J, CvMat * eps, CvMat * ds);
39 
40  CvMat * M_copy;
41  double * M1, * M2;
42  double * b_copy;
44 };
45 
47 
48 #endif // LS_STEP_SOLVER_H