Table of Contents

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

src InputArray

The source image

dst OutputArray

The destination image; will have the same type as src and the size Size(src.cols+left+right, src.rows+top+bottom)

top int

Specify how much pixels in each direction from the source image rectangle one needs to extrapolate

bottom int

Specify how much pixels in each direction from the source image rectangle one needs to extrapolate

left int

Specify how much pixels in each direction from the source image rectangle one needs to extrapolate

right int

Specify how much pixels in each direction from the source image rectangle one needs to extrapolate

borderType BorderTypes

The border type

value Scalar?

The border value if borderType == Constant