libigl v2.5.0
Loading...
Searching...
No Matches
rigid_alignment.h
Go to the documentation of this file.
1// This file is part of libigl, a simple c++ geometry processing library.
2//
3// Copyright (C) 2019 Alec Jacobson <alecjacobson@gmail.com>
4//
5// This Source Code Form is subject to the terms of the Mozilla Public License
6// v. 2.0. If a copy of the MPL was not distributed with this file, You can
7// obtain one at http://mozilla.org/MPL/2.0/.
8#ifndef RIGID_ALIGNMENT_H
9#define RIGID_ALIGNMENT_H
10#include "igl_inline.h"
11#include <Eigen/Core>
12
13namespace igl
14{
29 template <
30 typename DerivedX,
31 typename DerivedP,
32 typename DerivedN,
33 typename DerivedR,
34 typename Derivedt
35 >
37 const Eigen::MatrixBase<DerivedX> & X,
38 const Eigen::MatrixBase<DerivedP> & P,
39 const Eigen::MatrixBase<DerivedN> & N,
40 Eigen::PlainObjectBase<DerivedR> & R,
41 Eigen::PlainObjectBase<Derivedt> & t);
42}
43
44#ifndef IGL_STATIC_LIBRARY
45# include "rigid_alignment.cpp"
46#endif
47
48#endif
#define IGL_INLINE
Definition igl_inline.h:15
Definition AABB.h:17
void rigid_alignment(const Eigen::MatrixBase< DerivedX > &X, const Eigen::MatrixBase< DerivedP > &P, const Eigen::MatrixBase< DerivedN > &N, Eigen::PlainObjectBase< DerivedR > &R, Eigen::PlainObjectBase< Derivedt > &t)
Find the rigid transformation that best aligns the 3D points X to their corresponding points P with a...