For some reason whenever I use OpenCV\'s warpPerspective() function, the final warped image does not contain everything in the original image. The left part of the image see
I have done one method... It is working.
perspectiveTransform(obj_corners,scene_corners,H); int maxCols(0),maxRows(0); for(int i=0;i
I just find the maximum of the x points and y points respectively and put it on
warpPerspective( tmp, transformedImage, homography, Size( maxCols, maxRows ) );