Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

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.