PandaRoot
icpPointToPoint.h
Go to the documentation of this file.
1 /*
2 Copyright 2011. All rights reserved.
3 Institute of Measurement and Control Systems
4 Karlsruhe Institute of Technology, Germany
5 
6 Authors: Andreas Geiger
7 
8 libicp 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 any later version.
11 
12 libicp is distributed in the hope that it will be useful, but WITHOUT ANY
13 WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
14 PARTICULAR PURPOSE. See the GNU General Public License for more details.
15 
16 You should have received a copy of the GNU General Public License along with
17 libicp; if not, write to the Free Software Foundation, Inc., 51 Franklin
18 Street, Fifth Floor, Boston, MA 02110-1301, USA
19 */
20 
21 #ifndef ICP_POINT_TO_POINT_H
22 #define ICP_POINT_TO_POINT_H
23 
24 #include "icp.h"
25 
26 class IcpPointToPoint : public Icp {
27 
28  public:
29  IcpPointToPoint(double *M, const int32_t M_num, const int32_t M_dim) : Icp(M, M_num, M_dim) {}
30  virtual ~IcpPointToPoint() {}
31 
32  private:
33  double fitInstant(double *T, const int32_t T_num, Matrix &R, Matrix &t, const std::vector<int32_t> &active);
34  double fitStep(double *T, const int32_t T_num, Matrix &R, Matrix &t, const std::vector<int32_t> &active);
35  std::vector<int32_t> getInliers(double *T, const int32_t T_num, const Matrix &R, const Matrix &t, const double indist);
36 };
37 
38 #endif // ICP_POINT_TO_POINT_H
int int32_t
Definition: matrix.h:32
int32_t T_num
Definition: icp.h:98
IcpPointToPoint(double *M, const int32_t M_num, const int32_t M_dim)
Definition: matrix.h:50
Definition: icp.h:33
virtual ~IcpPointToPoint()