itksnap: Run ITK-SNAP

View source: R/itksnap.R

itksnapR Documentation

Run ITK-SNAP

Description

Executes ITK-SNAP

Usage

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)
## Not run: 
itksnap(nim)

## End(Not run)

muschellij2/itksnapr documentation built on June 29, 2024, 2:39 a.m.