1 | initial version |
you can try warpPerspective_demo.cpp and adding a border on the image maybe useful.
Mat original_image = imread( filename );
copyMakeBorder(original_image, original_image, 100, 100, 100, 100, BORDER_CONSTANT, Scalar(0, 0, 0));