Open3D (C++ API)
EigenHelperForNonRigidOptimization.h
Go to the documentation of this file.
1 // ----------------------------------------------------------------------------
2 // - Open3D: www.open3d.org -
3 // ----------------------------------------------------------------------------
4 // The MIT License (MIT)
5 //
6 // Copyright (c) 2018 www.open3d.org
7 //
8 // Permission is hereby granted, free of charge, to any person obtaining a copy
9 // of this software and associated documentation files (the "Software"), to deal
10 // in the Software without restriction, including without limitation the rights
11 // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
12 // copies of the Software, and to permit persons to whom the Software is
13 // furnished to do so, subject to the following conditions:
14 //
15 // The above copyright notice and this permission notice shall be included in
16 // all copies or substantial portions of the Software.
17 //
18 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19 // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20 // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
21 // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22 // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
23 // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
24 // IN THE SOFTWARE.
25 // ----------------------------------------------------------------------------
26 
27 #pragma once
28 
29 #include <Eigen/Core>
30 #include <tuple>
31 #include <vector>
32 
33 namespace Eigen {
34 
35 typedef Eigen::Matrix<double, 14, 14> Matrix14d;
36 typedef Eigen::Matrix<double, 14, 1> Vector14d;
37 typedef Eigen::Matrix<int, 14, 1> Vector14i;
38 
39 } // namespace Eigen
40 
41 namespace open3d {
42 namespace color_map {
43 
50 template <typename VecInTypeDouble,
51  typename VecInTypeInt,
52  typename MatOutType,
53  typename VecOutType>
54 std::tuple<MatOutType, VecOutType, double> ComputeJTJandJTrNonRigid(
55  std::function<void(int, VecInTypeDouble &, double &, VecInTypeInt &)> f,
56  int iteration_num,
57  int nonrigidval,
58  bool verbose = true);
59 
60 } // namespace color_map
61 } // namespace open3d
Definition: EigenHelperForNonRigidOptimization.h:33
Eigen::Matrix< double, 14, 1 > Vector14d
Definition: EigenHelperForNonRigidOptimization.h:36
Eigen::Matrix< int, 14, 1 > Vector14i
Definition: EigenHelperForNonRigidOptimization.h:37
Definition: Open3DViewer.h:29
Eigen::Matrix< double, 14, 14 > Matrix14d
Definition: EigenHelperForNonRigidOptimization.h:35
std::tuple< MatOutType, VecOutType, double > ComputeJTJandJTrNonRigid(std::function< void(int, VecInTypeDouble &, double &, VecInTypeInt &)> f, int iteration_num, int nonrigidval, bool verbose)
Definition: EigenHelperForNonRigidOptimization.cpp:38