MatCopyMakeBorder Method OpenCvSharp Class Library
Forms a border around the image

Namespace:  OpenCvSharp.CPlusPlus
Assembly:  OpenCvSharp.CPlusPlus (in OpenCvSharp.CPlusPlus.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax

public Mat CopyMakeBorder(
	int top,
	int bottom,
	int left,
	int right,
	BorderType borderType,
	Nullable<Scalar> value = null
)

Parameters

top
Type: SystemInt32
Specify how much pixels in each direction from the source image rectangle one needs to extrapolate
bottom
Type: SystemInt32
Specify how much pixels in each direction from the source image rectangle one needs to extrapolate
left
Type: SystemInt32
Specify how much pixels in each direction from the source image rectangle one needs to extrapolate
right
Type: SystemInt32
Specify how much pixels in each direction from the source image rectangle one needs to extrapolate
borderType
Type: OpenCvSharpBorderType
The border type
value (Optional)
Type: SystemNullableScalar
The border value if borderType == Constant

Return Value

Type: Mat

[Missing <returns> documentation for "M:OpenCvSharp.CPlusPlus.Mat.CopyMakeBorder(System.Int32,System.Int32,System.Int32,System.Int32,OpenCvSharp.BorderType,System.Nullable{OpenCvSharp.CPlusPlus.Scalar})"]

See Also

Reference