How to store mat in vector<Rect>

asked 2018-09-25 08:06:35 -0600

saniket123 gravatar image

updated 2018-09-25 08:09:29 -0600

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; //cropped image.

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

thanks in advance.

edit retag flag offensive close merge delete

Comments

your question does not make any sense. Mat and Rect are very different things.

please try to explain.

did you want to store a vector of ROI's (cropped images) ?

berak gravatar imageberak ( 2018-09-25 08:18:54 -0600 )edit