R: Generic STAPLE Algorithm

staple {stapler} | R Documentation

## 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)

    ## Default S3 method:
    staple(x, ..., set_orient = FALSE)

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

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

    ## S3 method for class '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 `niftiImage`s.

[Package stapler version 0.6.5 Index]