Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How to store mat in vector<rect>

I have cropped face which is in mat. And for the application i want it to store in rect form.
variables are -->
std::vector<rect> rects; //vector of rectangle;
Mat face; //obtained face.

and i want something like
rects[0]=face;

thanks in advance.

How to store mat in vector<rect>

I have cropped face image which is in mat. And for the application i want it to store in rect form.
variables are -->
std::vector<rect> rects; //vector of rectangle;
Mat face; image; //obtained face.image.

and i want something like
rects[0]=face;rects[0]=image;

thanks in advance.

How to store mat in vector<rect>

I have cropped image which is in mat. And for the application i want it to store in rect form.

variables are -->
std::vector<rect> rects; //vector of rectangle;
Mat image; //obtained //cropped image.

and i want something like
rects[0]=image;

thanks in advance.