Forms a border around an image.
cv2.copyMakeBorder(src, top, bottom, left, right, borderType[, dst[, value]]) → dst
cv2.BORDER_*
): Pixel extrapolation method. Choose from:
src
and size Size(src.cols+left+right, src.rows+top+bottom)
.src
is already in the middle of dst
. In this case, the function does not copy src
itself but simply constructs the border.src
was not a ROI, use borderType BORDER_ISOLATED.