First time here? Check out the FAQ!
answered 2014-03-02 22:42:39 -0600
croping should be done by this method in C++, i got accurate croping image.
Rect roi(r.x, r.y, r.width, r.height); Mat image_roi = image(roi); image_roi.copyTo(cropimage); imwrite("cropimage.jpg",image_roi);