Table of Contents

Method BorderInterpolate

Namespace
OpenCvSharp
Assembly
OpenCvSharp.dll

BorderInterpolate(int, int, BorderTypes)

Computes the source location of an extrapolated pixel.

public static int BorderInterpolate(int p, int len, BorderTypes borderType)

Parameters

p int

0-based coordinate of the extrapolated pixel along one of the axes, likely <0 or >= len

len int

Length of the array along the corresponding axis.

borderType BorderTypes

Border type, one of the #BorderTypes, except for #BORDER_TRANSPARENT and BORDER_ISOLATED. When borderType==BORDER_CONSTANT, the function always returns -1, regardless

Returns

int