cv::Mat_ vs std::vector
Which is better, cv::Mat_<cv::point2f> or std::vector<cv::point2f>?
cv::Mat_<> is a two dimensional structure. std::vector<> is a one dimensional structure.
If you have a 2D shape, then go ahead and use Mat_. If you have a 1D shape, you can use either, unless you want it to change size (push_back, pop_back), in which case, use vector.
Asked: 2017-08-10 23:35:33 -0600
Seen: 288 times
Last updated: Aug 11 '17