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; //cropped image.
and i want something like
rects[0]=image;
thanks in advance.
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) ?