NrrdProject: Make projections along a nrrd axis, typically also rescaling

Description Usage Arguments Details Value See Also Examples

Description

Make projections along a nrrd axis, typically also rescaling

Usage

1
2
3
4
5
6
NrrdProject(infile, outfile, axis, measure = c("max", "min", "mean",
  "median", "mode", "variance", "skew", "intc", "slope", "error", "sd",
  "product", "sum", "L1", "L2", "Linf"), scale = "x0.3333 x0.333",
  kernel = "cheap", gamma = NA, cropmin = NULL, cropmax = NULL,
  suffix = NULL, CreateDirs = TRUE, Verbose = TRUE, Force = FALSE,
  UseLock = FALSE)

Arguments

infile

Input/output files

outfile

Optional path to output file (constructed automatically when missing)

axis

Number indicating 0-indexed axis or character "x", "y" or "z"

measure

Character vector indicating summary function to apply to values in each column. Choose from c("max", "min", "mean", "median", "mode", "variance", "skew", "intc", "slope", "error", "sd", "product", "sum", "L1", "L2", "Linf")

scale

How to scale each axis (see details)

kernel

Type of smoothing kernel to use (see details)

gamma

Exponent for the mapping of input to output values (see details)

cropmin, cropmax

triples defining the lower and higher corners of bounding box

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

Details

gamma: Just as in xv, the gamma value here is actually the reciprocal of the exponent actually used to transform the values. Note also that for cropmin,cropmax the special value M can be used to indicate the maximum index for that axis (i.e. n-1 when there are n samples).

scale: For each axis, information about how many samples in output:

Kernel: The kernel to use for resampling. Kernels logically live in the input index space for upsampling, and in the output index space for downsampling. Possibilities include:

Crop max, min:

Value

Logical indicating success

See Also

NrrdSave, NrrdMerge

Examples

1
2
3
4
5
## Not run: 
# NB cropping from 50th slice to 50 before final slice
NrrdProject(infile,axis='z',cropmin='0 0 50',cropmax='0 0 M-50')

## End(Not run)

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