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
pint0-based coordinate of the extrapolated pixel along one of the axes, likely <0 or >= len
lenintLength of the array along the corresponding axis.
borderTypeBorderTypesBorder type, one of the #BorderTypes, except for #BORDER_TRANSPARENT and BORDER_ISOLATED. When borderType==BORDER_CONSTANT, the function always returns -1, regardless