This function zero pads an image by a certain number of dimensions, usually for convolution
zero_pad(img, kdim, invert = FALSE, pad_value = 0L, ...)Array or class nifti
Dimensions of kernel
(logical) If FALSE, does zero padding. If TRUE,
reverses the process.
Value to pad the image with. May use other values, such as -1024 for CT data
Options to copyNIfTIHeader
Object of class nifti