Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

OpenCv: Extract portion of a Mat image

If I have a MatOfPoint that represents a rectangle, how can I extract this MatOfPoint from an image, another Mat. I just want to extract a portion of a image that is represented by the MatOfPoint. I can extract the coordinates from the MatOfPoint , how can I use the 4 coordinates to extract the portion of the Mat?