% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ich_preprocess.R
\name{ich_preprocess}
\alias{ich_preprocess}
\alias{ich_cnn_preprocess}
\title{Preprocess data for ICH Segmentation}
\usage{
ich_preprocess(
img,
skull_strip = TRUE,
robust = TRUE,
mask = NULL,
n4_correct = FALSE,
template.file = system.file("scct_unsmooth_SS_0.01.nii.gz", package = "ichseg"),
outprefix = NULL,
typeofTransform = c("Rigid", "Affine"),
interpolator = "Linear",
outfile = NULL,
verbose = TRUE,
shiny = FALSE,
roi = NULL,
ss.template.file = system.file("scct_unsmooth_SS_0.01.nii.gz", package = "ichseg"),
ss.template.mask = system.file("scct_unsmooth_SS_0.01_Mask.nii.gz", package = "ichseg"),
...
)
ich_cnn_preprocess(
...,
template.file = system.file("scct_unsmooth_SS_0.01_128x128x128.nii.gz", package =
"ichseg")
)
}
\arguments{
\item{img}{CT image, object of class \code{nifti} or
character filename}
\item{skull_strip}{Should the image be skull stripped? If not,
a mask must be specified. If mask specified, will override this
option}
\item{robust}{If skull stripping, should
\code{\link{CT_Skull_Strip_robust}}
be used vs. \code{\link{CT_Skull_Strip}}}
\item{mask}{binary brain mask, object of class \code{nifti} or
character filename}
\item{n4_correct}{Should N4 bias-field correction be done after
skull-stripping}
\item{template.file}{Template to register to (Skull stripped template)}
\item{outprefix}{Passed to \code{\link[extrantsr]{registration}} for
the output transformations}
\item{typeofTransform}{Transformation to the template}
\item{interpolator}{Interpolation to be done after transformation}
\item{outfile}{Output filename for transformed registered image}
\item{verbose}{Print diagnostic output}
\item{shiny}{Should shiny progress be called?}
\item{roi}{Filename of ROI, which will be transformed}
\item{ss.template.file}{Template file to pass to
\code{\link{CT_Skull_Strip_robust}} robust registration/neck removal}
\item{ss.template.mask}{Template mask to pass to
\code{\link{CT_Skull_Strip_robust}} robust registration/neck removal}
\item{...}{Additional options passsed to \code{\link{CT_Skull_Strip_robust}}
or \code{\link{CT_Skull_Strip}}}
}
\value{
List of output images and transformations
}
\description{
Will do skull stripping and registration to the CT template
}