Executes ITK-SNAP

itksnap(
  grayscale,
  overlay = NULL,
  segmentation = NULL,
  labels = NULL,
  zoom = NULL,
  verbose = TRUE,
  ...
)

Arguments

grayscale

filenames or nifti objects to be displayed.

overlay

filenames or nifti objects to be set as overlays

segmentation

segmentation image using -s option

labels

label descriptions using -s option

zoom

initial zoom in screen pixels/mm

verbose

Print out the command executed

...

arguments to pass to itksnap_cmd

Value

Return of system command

Examples

dims = rep(10, 3)
arr = array(rnorm(prod(dims)), dim = dims)
nim = oro.nifti::nifti(arr)
if (FALSE) { # \dontrun{
itksnap(nim)
} # }