cv::Mat_ vs std::vector
Which is better, cv::Mat_<cv::point2f> or std::vector<cv::point2f>?
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: 315 times
Last updated: Aug 11 '17
How to build OpenCV with TBB support?
How to decrease the number of processed frames from a live video camera?
What is the most effective way to access cv::Mat elements in a loop?
Performance evaluation for detection
Question about the describe parameter of the files used in performance when doing haartraining?