CvInvokeCopyMakeBorder Method |
http://www.emgu.com
Copies the source 2D array into interior of destination array and makes a border of the specified type around the copied area. The function is useful when one needs to emulate border type that is different from the one embedded into a specific algorithm implementation. For example, morphological functions, as well as most of other filtering functions in OpenCV, internally use replication border type, while the user may need zero border or a border, filled with 1's or 255's
Namespace:
Emgu.CV
Assembly:
Emgu.CV.World (in Emgu.CV.World.dll) Version: 4.1.1.3497 (4.1.1.3497)
Syntaxpublic static void CopyMakeBorder(
IInputArray src,
IOutputArray dst,
int top,
int bottom,
int left,
int right,
BorderType bordertype,
MCvScalar value = null
)
Public Shared Sub CopyMakeBorder (
src As IInputArray,
dst As IOutputArray,
top As Integer,
bottom As Integer,
left As Integer,
right As Integer,
bordertype As BorderType,
Optional value As MCvScalar = Nothing
)
public:
static void CopyMakeBorder(
IInputArray^ src,
IOutputArray^ dst,
int top,
int bottom,
int left,
int right,
BorderType bordertype,
MCvScalar value = nullptr
)
static member CopyMakeBorder :
src : IInputArray *
dst : IOutputArray *
top : int *
bottom : int *
left : int *
right : int *
bordertype : BorderType *
?value : MCvScalar
(* Defaults:
let _value = defaultArg value null
*)
-> unit
Parameters
- src
- Type: Emgu.CVIInputArray
The source image - dst
- Type: Emgu.CVIOutputArray
The destination image - top
- Type: SystemInt32
Parameter specifying how many pixels in each direction from the source image rectangle to extrapolate. - bottom
- Type: SystemInt32
Parameter specifying how many pixels in each direction from the source image rectangle to extrapolate. - left
- Type: SystemInt32
Parameter specifying how many pixels in each direction from the source image rectangle to extrapolate. - right
- Type: SystemInt32
Parameter specifying how many pixels in each direction from the source image rectangle to extrapolate. - bordertype
- Type: Emgu.CV.CvEnumBorderType
Type of the border to create around the copied source image rectangle - value (Optional)
- Type: Emgu.CV.StructureMCvScalar
Value of the border pixels if bordertype=CONSTANT
See Also