Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

just add a border:

Mat src = ...
Mat dst;
copyMakeBorder(src, dst ,0, 20, 50, 0, BORDER_CONSTANT, Scalar::all(255));

just add a border:

Mat src = ...
Mat dst;
copyMakeBorder(src, dst ,0, 20, 10, 50, 0, BORDER_CONSTANT, Scalar::all(255));