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
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
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();
00022 }
00023 #endif