Ask Your Question

Revision history [back]

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));

image description