Will preprocess and predict the ICH voxels

ich_segment(
  img,
  ...,
  verbose = TRUE,
  shiny = FALSE,
  model = c("rf", "logistic", "big_rf"),
  outfile = NULL
)

ich_process_predictors(
  img,
  mask = NULL,
  save_imgs = FALSE,
  outdir = NULL,
  stub = NULL,
  verbose = TRUE,
  shiny = FALSE,
  roi = NULL,
  erode_mask = TRUE,
  ...
)

Arguments

img

CT image, object of class nifti or character filename

...

Additional options passsed to ich_preprocess

verbose

Print diagnostic output

shiny

Should shiny progress be called?

model

model to use for prediction, either the random forest (rf) or logistic

outfile

filename for native-space, smoothed, thresholded image.

mask

binary brain mask, object of class nifti or character filename

save_imgs

Logical to save all images that are created as predictors

outdir

Output directory of saved images, needs to be set if save_imgs = TRUE

stub

Basename to write image names if save_imgs = TRUE

roi

Filename of ROI, which will be transformed

erode_mask

Should the brain mask be eroded?

Value

List of output prediction/probability images