Resample a CMTK deformation field
resample_cmtk_dfield(infile, outfile = NULL, size = NULL, voxdims = NULL, ...)
infile | Input/output files |
---|---|
outfile | Input/output files |
size | Numeric vector of scale factors (NA=> don't touch) or integer vector of pixel dimensions. |
voxdims | Target voxel dimensions |
... | Additional params passed to unu |
# NOT RUN { resample_cmtk_dfield("hemiBrain_JRC2018F_Warp_cmtk.nrrd", size=c(NA, rep(1/3, 3))) # This currently fails because of https://github.com/jefferis/nat/issues/385 resample_cmtk_dfield("hemiBrain_JRC2018F_Warp_cmtk.nrrd", voxdims=c(NA, 2,2,2)) # }