If true, use Neumann boundary conditions, Dirichlet otherwise (default true, Neumann)
gaussian
Use a Gaussian filter (actually van Vliet-Young). Default: 0th-order Deriche filter.
na.rm
if TRUE, ignore NA values. Default FALSE, in which case the whole image is NA if one of the values is NA (following the definition of the Gaussian filter)