how to convert a matrix in dlib to a std::vector

前端 未结 2 1757
我寻月下人不归
我寻月下人不归 2021-01-20 05:15

I have a colume vector defined in dlib. How can I convert it to std::vector?

typedef dlib::matrix column_vector;
column_vector starting_poi         


        
2条回答
  •  花落未央
    2021-01-20 05:21

    There are many ways. You could copy it via a for loop. Or use the std::vector constructor that takes iterators: std::vector x(starting_point.begin(), starting_point.end()).

提交回复
热议问题