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 (in Emgu.CV.dll) Version: 2.4.0.1717 (2.4.0.1717)

Syntax

C#
public static void cvCopyMakeBorder(
	IntPtr src,
	IntPtr dst,
	Point offset,
	BORDER_TYPE bordertype,
	MCvScalar value
)
Visual Basic
Public Shared Sub cvCopyMakeBorder ( _
	src As IntPtr, _
	dst As IntPtr, _
	offset As Point, _
	bordertype As BORDER_TYPE, _
	value As MCvScalar _
)
Visual C++
public:
static void cvCopyMakeBorder(
	IntPtr src, 
	IntPtr dst, 
	Point offset, 
	BORDER_TYPE bordertype, 
	MCvScalar value
)

Parameters

src
Type: System..::..IntPtr
The source image
dst
Type: System..::..IntPtr
The destination image
offset
Type: System.Drawing..::..Point
Coordinates of the top-left corner (or bottom-left in case of images with bottom-left origin) of the destination image rectangle where the source image (or its ROI) is copied. Size of the rectangle matches the source image size/ROI size
bordertype
Type: Emgu.CV.CvEnum..::..BORDER_TYPE
Type of the border to create around the copied source image rectangle
value
Type: Emgu.CV.Structure..::..MCvScalar
Value of the border pixels if bordertype=CONSTANT

See Also