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").
register_lung_mask( moving_mask, fixed_mask, moving = NULL, sides = c("right", "left"), verbose = FALSE, typeofTransform = "SyN", composeTransforms = NULL, mask_interpolator = "nearestNeighbor", interpolator = "linear", ... )
| 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 |
| 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 |
| interpolator | Interpolator used to apply transformation to image,
passed to |
| ... | addition arguments to pass to |
A list of warped masks, images, and transformations for right and left lungs separately