register_lung_mask: Lung Registration

Description Usage Arguments Value

View source: R/register_lung_mask.R

Description

This function registers the right and left lung masks to a template mask. To register to the standard lung template mask, type system.file("extdata", "lung_template_mask.nii.gz", package = "lungct").

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
register_lung_mask(
  moving_mask,
  fixed_mask,
  moving = NULL,
  sides = c("right", "left"),
  verbose = FALSE,
  typeofTransform = "SyN",
  composeTransforms = NULL,
  mask_interpolator = "nearestNeighbor",
  interpolator = "linear",
  ...
)

Arguments

moving_mask

Mask of moving image. Right lung = 1, left lung = 2, non-lung = 0

fixed_mask

Mask of fixed image. Right lung = 1, left lung = 2, non-lung = 0

moving

Moving image to apply transformation

sides

Choose to register right and/or left lungs.

verbose

Print diagnostic messages

typeofTransform

Type of transform, passed to antsRegistration

composeTransforms

Prefix of output filename to save the composed forward transformations. The prefix will add comptx.nii.gz to the end.

mask_interpolator

Interpolator used to apply transformation to moving mask, passed to antsApplyTransforms

interpolator

Interpolator used to apply transformation to image, passed to antsApplyTransforms

...

addition arguments to pass to antsRegistration

Value

A list of warped masks, images, and transformations for right and left lungs separately


neuroconductor-devel/lungct documentation built on April 1, 2021, 4:40 a.m.