| Cv2CopyMakeBorder Method |
Forms a border around the image
Namespace:
OpenCvSharp
Assembly:
OpenCvSharp (in OpenCvSharp.dll) Version: 1.0.0
Syntax public static void CopyMakeBorder(
InputArray src,
OutputArray dst,
int top,
int bottom,
int left,
int right,
BorderTypes borderType,
Nullable<Scalar> value = null
)
Public Shared Sub CopyMakeBorder (
src As InputArray,
dst As OutputArray,
top As Integer,
bottom As Integer,
left As Integer,
right As Integer,
borderType As BorderTypes,
Optional value As Nullable(Of Scalar) = Nothing
)
public:
static void CopyMakeBorder(
InputArray^ src,
OutputArray^ dst,
int top,
int bottom,
int left,
int right,
BorderTypes borderType,
Nullable<Scalar> value = nullptr
)
static member CopyMakeBorder :
src : InputArray *
dst : OutputArray *
top : int *
bottom : int *
left : int *
right : int *
borderType : BorderTypes *
?value : Nullable<Scalar>
(* Defaults:
let _value = defaultArg value null
*)
-> unit
Parameters
- src
- Type: OpenCvSharpInputArray
The source image - dst
- Type: OpenCvSharpOutputArray
The destination image; will have the same type as src and
the size Size(src.cols+left+right, src.rows+top+bottom) - 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: OpenCvSharpBorderTypes
The border type - value (Optional)
- Type: SystemNullableScalar
The border value if borderType == Constant
See Also