[242173]: / man / ich_preprocess.Rd

Download this file

83 lines (66 with data), 2.4 kB

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
% 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
}