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