Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Extract parts from image

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.Input

This is the outcome I want. i want to extract those parts which are defined by those rectangles to same-sized matrix

Output

I have tried something like

cropMat(boudingRect) = frame(boundinRect);

but with this I get only the rectangles, not the part that is inside