I have tried to use ROI to extract parts of image, but I haven't succeded. I have an image which contains rectangles - outlines of detected moving object.
This is the outcome I want. i want to extract those parts which are defined by those rectangles to same-sized matrix
I have tried something like
cropMat(boudingRect) = frame(boundinRect);
but with this I get only the rectangles, not the part that is inside