Learn R Programming

ANTsR (version 0.3.1)

mrvnrfs.predict: multi-res voxelwise neighborhood random forest segmentation

Description

Represents multiscale feature images as a neighborhood and uses the features to apply a random forest segmentation model to a new image

Usage

mrvnrfs.predict(rflist, x, labelmask, rad = NA, multiResSchedule = c(4, 2,
  1), asFactors = TRUE)

Arguments

rflist

a list of random forest models from mrvnrfs

x

a list of lists where each list contains feature images

labelmask

a mask for the features (all in the same image space)

rad

vector of dimensionality d define nhood radius

multiResSchedule

an integer vector defining multi-res levels

asFactors

boolean - treat the y entries as factors

Value

list a 4-list with the rf model, training vector, feature matrix and the random mask