cv.borderInterpolate - MATLAB File Help |
Computes the source location of an extrapolated pixel
loc = cv.borderInterpolate(p, len)
[...] = cv.borderInterpolate(..., 'OptionName', optionValue, ...)
p < 0
or p >= len
.BorderType Border type, one of:
iiiiii|abcdefgh|iiiiiii
with some specified i
aaaaaa|abcdefgh|hhhhhhh
fedcba|abcdefgh|hgfedcb
gfedcb|abcdefgh|gfedcba
cdefgh|abcdefgh|abcdefg
When BorderType=='Constant'
, the function always returns -1, regardless
of p
and len
.
The function computes and returns the coordinate of a donor pixel corresponding to the specified extrapolated pixel when using the specified extrapolation border mode.
Normally, the function is not called directly. It is used inside filtering functions and also in cv.copyMakeBorder.