{% extends "base.html" %} {% block title %} copyMakeBorder {% endblock %} {% block description %}
Forms a border around an image.
{% endblock %} {% block signature %}cv2.copyMakeBorder(src, top, bottom, left, right, borderType[, dst[, value]]) → dst{% endblock %} {% block parameters %}
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.