1 #ifndef __FEATURES2D_CONVERTERS_HPP__ 2 #define __FEATURES2D_CONVERTERS_HPP__ 3 4 #include "opencv2/opencv_modules.hpp" 5 #include "opencv2/core.hpp" 6 7 #include "features2d_manual.hpp" 8 9 void Mat_to_vector_KeyPoint(cv::Mat& mat, std::vector<cv::KeyPoint>& v_kp); 10 void vector_KeyPoint_to_Mat(std::vector<cv::KeyPoint>& v_kp, cv::Mat& mat); 11 12 void Mat_to_vector_DMatch(cv::Mat& mat, std::vector<cv::DMatch>& v_dm); 13 void vector_DMatch_to_Mat(std::vector<cv::DMatch>& v_dm, cv::Mat& mat); 14 15 void Mat_to_vector_vector_KeyPoint(cv::Mat& mat, std::vector< std::vector< cv::KeyPoint > >& vv_kp); 16 void vector_vector_KeyPoint_to_Mat(std::vector< std::vector< cv::KeyPoint > >& vv_kp, cv::Mat& mat); 17 18 void Mat_to_vector_vector_DMatch(cv::Mat& mat, std::vector< std::vector< cv::DMatch > >& vv_dm); 19 void vector_vector_DMatch_to_Mat(std::vector< std::vector< cv::DMatch > >& vv_dm, cv::Mat& mat); 20 21 22 #endif 23