Home | History | Annotate | Download | only in cpp
      1 #include "opencv2/opencv_modules.hpp"
      2 #include "opencv2/core.hpp"
      3 
      4 void Mat_to_vector_int(cv::Mat& mat, std::vector<int>& v_int);
      5 void vector_int_to_Mat(std::vector<int>& v_int, cv::Mat& mat);
      6 
      7 void Mat_to_vector_double(cv::Mat& mat, std::vector<double>& v_double);
      8 void vector_double_to_Mat(std::vector<double>& v_double, cv::Mat& mat);
      9 
     10 void Mat_to_vector_float(cv::Mat& mat, std::vector<float>& v_float);
     11 void vector_float_to_Mat(std::vector<float>& v_float, cv::Mat& mat);
     12 
     13 void Mat_to_vector_uchar(cv::Mat& mat, std::vector<uchar>& v_uchar);
     14 void vector_uchar_to_Mat(std::vector<uchar>& v_uchar, cv::Mat& mat);
     15 
     16 void Mat_to_vector_char(cv::Mat& mat, std::vector<char>& v_char);
     17 void vector_char_to_Mat(std::vector<char>& v_char, cv::Mat& mat);
     18 
     19 void Mat_to_vector_Rect(cv::Mat& mat, std::vector<cv::Rect>& v_rect);
     20 void vector_Rect_to_Mat(std::vector<cv::Rect>& v_rect, cv::Mat& mat);
     21 
     22 
     23 void Mat_to_vector_Point(cv::Mat& mat, std::vector<cv::Point>& v_point);
     24 void Mat_to_vector_Point2f(cv::Mat& mat, std::vector<cv::Point2f>& v_point);
     25 void Mat_to_vector_Point2d(cv::Mat& mat, std::vector<cv::Point2d>& v_point);
     26 void Mat_to_vector_Point3i(cv::Mat& mat, std::vector<cv::Point3i>& v_point);
     27 void Mat_to_vector_Point3f(cv::Mat& mat, std::vector<cv::Point3f>& v_point);
     28 void Mat_to_vector_Point3d(cv::Mat& mat, std::vector<cv::Point3d>& v_point);
     29 
     30 void vector_Point_to_Mat(std::vector<cv::Point>& v_point, cv::Mat& mat);
     31 void vector_Point2f_to_Mat(std::vector<cv::Point2f>& v_point, cv::Mat& mat);
     32 void vector_Point2d_to_Mat(std::vector<cv::Point2d>& v_point, cv::Mat& mat);
     33 void vector_Point3i_to_Mat(std::vector<cv::Point3i>& v_point, cv::Mat& mat);
     34 void vector_Point3f_to_Mat(std::vector<cv::Point3f>& v_point, cv::Mat& mat);
     35 void vector_Point3d_to_Mat(std::vector<cv::Point3d>& v_point, cv::Mat& mat);
     36 
     37 void vector_Vec4i_to_Mat(std::vector<cv::Vec4i>& v_vec, cv::Mat& mat);
     38 void vector_Vec4f_to_Mat(std::vector<cv::Vec4f>& v_vec, cv::Mat& mat);
     39 void vector_Vec6f_to_Mat(std::vector<cv::Vec6f>& v_vec, cv::Mat& mat);
     40 
     41 void Mat_to_vector_Mat(cv::Mat& mat, std::vector<cv::Mat>& v_mat);
     42 void vector_Mat_to_Mat(std::vector<cv::Mat>& v_mat, cv::Mat& mat);
     43 
     44 void Mat_to_vector_vector_char(cv::Mat& mat, std::vector< std::vector< char > >& vv_ch);
     45 void vector_vector_char_to_Mat(std::vector< std::vector< char > >& vv_ch, cv::Mat& mat);
     46 
     47 void Mat_to_vector_vector_Point(cv::Mat& mat, std::vector< std::vector< cv::Point > >& vv_pt);
     48 void vector_vector_Point_to_Mat(std::vector< std::vector< cv::Point > >& vv_pt, cv::Mat& mat);
     49 
     50 void Mat_to_vector_vector_Point2f(cv::Mat& mat, std::vector< std::vector< cv::Point2f > >& vv_pt);
     51 void vector_vector_Point2f_to_Mat(std::vector< std::vector< cv::Point2f > >& vv_pt, cv::Mat& mat);
     52 
     53 void Mat_to_vector_vector_Point3f(cv::Mat& mat, std::vector< std::vector< cv::Point3f > >& vv_pt);
     54 void vector_vector_Point3f_to_Mat(std::vector< std::vector< cv::Point3f > >& vv_pt, cv::Mat& mat);
     55