Click or drag to resize
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: 3.2.0.2682 (3.2.0.2682)
Syntax
public static void CopyMakeBorder(
	IInputArray src,
	IOutputArray dst,
	int top,
	int bottom,
	int left,
	int right,
	BorderType bordertype,
	MCvScalar value = null
)

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