resample_cmtk_dfield: Resample a CMTK deformation field

Description Usage Arguments Examples

Description

Resample a CMTK deformation field

Usage

1
2
resample_cmtk_dfield(infile, outfile = NULL, size = NULL,
  voxdims = NULL, ...)

Arguments

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

Examples

1
2
3
4
5
6
## 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))

## End(Not run)

jefferis/runu documentation built on May 14, 2019, 2:43 p.m.