Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Assume you got your point like, topLeft, topRight, bottomLeft, bottomRight.

Mat src;//Source image load here
Rect R(topLeft,bottomRight); //Create a rect 
Mat ROI = src(R) //Crop the region of interest using above rect