trimmed_z: Trimmed Z-score Image

Description Usage Arguments Value Examples

Description

Creates a normalized image using z-scores

Usage

1
2
trimmed_z(img, mask = NULL, remask = FALSE, trim = 0.2, center = TRUE,
  scale = TRUE)

Arguments

img

Object of class nifti

mask

Binary object of class nifti. If missing, whole image used.

remask

Should the result be masked after z-scoring (all outside set to 0)

trim

The trim passed to trim_mean_sd

center

Logical indicating whether the value should be centered by trimmed mean

scale

Logical indicating whether the value should be scaled by trimmed sd

Value

Object of class nifti

Examples

1
2
3
nim = oro.nifti::nifti(img = array(rnorm(1000), dim = c(10, 10, 10)))
mask = nim > 0
trimmed_z(nim, mask)

muschellij2/msseg documentation built on May 23, 2019, 9:53 a.m.