interp: Fill the gaps using nearest neighbors

Description Usage Arguments Value

Description

This function fill the NA values of a cimg object by averaging neighbors

Usage

1
interp(im, cubic = FALSE, extrapolate = FALSE, npass = 3)

Arguments

im

an cimg object with NAs

cubic

if TRUE, use cubic interpolation. If FALSE, use linear (default FALSE)

extrapolate

allow extrapolation (to values outside the image)

npass

number of passes of the algorithm (usefull to fill larger holes)

Value

a cimg object.


coldfir3/surf documentation built on May 13, 2019, 8:49 p.m.