NrrdResample: Resample a nrrd with simple or complex filters

Description Usage Arguments Details Value Author(s)

Description

description wraps unu resample

Usage

1
2
3
4
NrrdResample(infile, outfile = NULL, size = NULL, voxdims = NULL,
  centering = c("cell", "node"), otherargs = NULL, gzip = TRUE,
  suffix = NULL, CreateDirs = TRUE, Verbose = TRUE, Force = FALSE,
  UseLock = FALSE, ...)

Arguments

infile, outfile

Input/output files

size

Numeric vector of scale factors (NA=> don't touch) or integer vector of pixel dimensions.

voxdims

Target voxel dimensions

centering

Whether to assume node or cell centering if not specified in input file.

otherargs

Passed to unu resample

gzip

Whether or not to gzip encode the output file?

suffix

A suffix added to the input file to construct an output filename

CreateDirs

Whether to create implied output directories

Verbose

Print status messages

Force

Whether to overwrite an existing file

UseLock

Whether to use file-based locking to enable simple parallelisation

...

Additional params passed to unu

Details

If outfile is NULL a default filename wil be constructed.

When size is explicitly an integer (e.g. c(512L,512L,100L) then it is assumed to represent the size of the desired output in pixels.

unu resample defaults to cell centering in the asbence of information, but I prefer node.

* downsampling a **cell** image (e.g. x2) will result in

.

Downsampling a node image (e.g. x2) will result in:

Value

The output file

Author(s)

jefferis


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