Learn R Programming

stapler (version 0.7.1)

staple: Generic STAPLE Algorithm

Description

Tries to do the correct STAPLE algorithm (binary/multi-class) for the type of input (array/matrix/list of images/filenames of images)

Usage

staple(x, ..., set_orient = FALSE)

# S3 method for default staple(x, ..., set_orient = FALSE)

# S3 method for list staple(x, ..., set_orient = FALSE)

# S3 method for character staple(x, ..., set_orient = FALSE)

# S3 method for array staple(x, ..., set_orient = FALSE)

Arguments

x

a nxr matrix where there are n raters and r elements rated, a list of images, or a character vector. Note, readNifti is used for image filenames

...

Options for STAPLE, see staple_bin_mat and staple_multi_mat

set_orient

Should the orientation be set to the same if x is a set of images, including niftiImages.