transformation_estimation_euclidean.h
Go to the documentation of this file.
00001 #ifndef RGBD_SLAM_TF_EUC_H_
00002 #define RGBD_SLAM_TF_EUC_H_
00003 #include <Eigen/Core>
00004 #include <opencv2/features2d/features2d.hpp>
00005 #include <vector>
00006 class Node;
00007 // Compute the transformation from matches using pcl::TransformationFromCorrespondences
00008 Eigen::Matrix4f getTransformFromMatches(const Node* newer_node,
00009                                         const Node* older_node, 
00010                                         const std::vector<cv::DMatch> & matches,
00011                                         bool& valid, 
00012                                         float max_dist_m = -1);
00013 
00014 // Compute the transformation from matches using Eigen::umeyama
00015 Eigen::Matrix4f getTransformFromMatchesUmeyama(const Node* newer_node,
00016                                                const Node* older_node,
00017                                                std::vector<cv::DMatch> matches,
00018                                                bool& valid);
00019 
00020 inline bool containsNaN(const Eigen::Matrix4f& mat){
00021     return (mat.array() != mat.array()).any(); //No NaNs
00022 }
00023 #endif


rgbdslam_v2
Author(s): Felix Endres, Juergen Hess, Nikolas Engelhard
autogenerated on Thu Jun 6 2019 21:49:45