Method CopyMakeBorder
- Namespace
- OpenCvSharp
- Assembly
- OpenCvSharp.dll
CopyMakeBorder(InputArray, OutputArray, int, int, int, int, BorderTypes, Scalar?)
Forms a border around the image
public static void CopyMakeBorder(InputArray src, OutputArray dst, int top, int bottom, int left, int right, BorderTypes borderType, Scalar? value = null)
Parameters
srcInputArrayThe source image
dstOutputArrayThe destination image; will have the same type as src and the size Size(src.cols+left+right, src.rows+top+bottom)
topintSpecify how much pixels in each direction from the source image rectangle one needs to extrapolate
bottomintSpecify how much pixels in each direction from the source image rectangle one needs to extrapolate
leftintSpecify how much pixels in each direction from the source image rectangle one needs to extrapolate
rightintSpecify how much pixels in each direction from the source image rectangle one needs to extrapolate
borderTypeBorderTypesThe border type
valueScalar?The border value if borderType == Constant