Pad a 3D array by a certain amount in each direction, along each dimension. This effectively undoes a crop.
pad_vol(x, padding, fill = NA)uncrop_vol(x, padding, fill = NA)
A 3D array, e.g. unmask_subcortex(xifti$data$subcort, xifti$meta$subcort$mask)
.
A \(d \times 2\) matrix indicating the number of
slices to add at the beginning and end of each of the d dimensions, e.g.
xifti$meta$subcort$mask_padding
.
Values to pad with. Default: NA
.
The padded array