a b/man/register_lung_mask.Rd
1
% Generated by roxygen2: do not edit by hand
2
% Please edit documentation in R/register_lung_mask.R
3
\name{register_lung_mask}
4
\alias{register_lung_mask}
5
\title{Lung Registration}
6
\usage{
7
register_lung_mask(
8
  moving_mask,
9
  fixed_mask,
10
  moving = NULL,
11
  sides = c("right", "left"),
12
  verbose = FALSE,
13
  typeofTransform = "SyN",
14
  composeTransforms = NULL,
15
  mask_interpolator = "nearestNeighbor",
16
  interpolator = "linear",
17
  ...
18
)
19
}
20
\arguments{
21
\item{moving_mask}{Mask of moving image. Right lung = 1, left lung = 2, non-lung = 0}
22
23
\item{fixed_mask}{Mask of fixed image. Right lung = 1, left lung = 2, non-lung = 0}
24
25
\item{moving}{Moving image to apply transformation}
26
27
\item{sides}{Choose to register right and/or left lungs.}
28
29
\item{verbose}{Print diagnostic messages}
30
31
\item{typeofTransform}{Type of transform, passed to \code{\link{antsRegistration}}}
32
33
\item{composeTransforms}{Prefix of output filename to save the composed forward transformations. The prefix will add comptx.nii.gz to the end.}
34
35
\item{mask_interpolator}{Interpolator used to apply transformation to moving mask,
36
passed to \code{\link{antsApplyTransforms}}}
37
38
\item{interpolator}{Interpolator used to apply transformation to image,
39
passed to \code{\link{antsApplyTransforms}}}
40
41
\item{...}{addition arguments to pass to \code{\link{antsRegistration}}}
42
}
43
\value{
44
A list of warped masks, images, and transformations for
45
right and left lungs separately
46
}
47
\description{
48
This function registers the right and left lung masks to a template mask. To register to the standard lung template mask, type \code{system.file("extdata", "lung_template_mask.nii.gz", package = "lungct").}
49
}