answered Jun 5 '14
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