Click or drag to resize

Cv2BorderInterpolate Method

Computes the source location of an extrapolated pixel.

Namespace:  OpenCvSharp
Assembly:  OpenCvSharp (in OpenCvSharp.dll) Version: 3.4.1.20180605-33-CaRLSharp
Syntax
public static int BorderInterpolate(
	int p,
	int len,
	BorderTypes borderType
)

Parameters

p
Type: SystemInt32
0-based coordinate of the extrapolated pixel along one of the axes, likely <0 or >= len
len
Type: SystemInt32
Length of the array along the corresponding axis.
borderType
Type: OpenCvSharpBorderTypes
Border type, one of the #BorderTypes, except for #BORDER_TRANSPARENT and BORDER_ISOLATED. When borderType==BORDER_CONSTANT, the function always returns -1, regardless

Return Value

Type: Int32
See Also