labelreg: Register Label Image Based on Full Image

Description Usage Arguments Value Examples

Description

This function registers a full image to a fixed image, then applies the registration to a label or binary image in the same space as the full image.

Usage

1
2
labelreg(fullimage, labelimage, fixedimage, typeofTransform = "Rigid",
  interpolator = "lanczosWindowedSinc")

Arguments

fullimage

an image of class nifti, in the same space as the label image, which will be registered to the fixed image.

labelimage

an image of class nifti with limited structural information, in the same space as the full image, to which the full image registration will be applied.

fixedimage

an image of class nifti, to which the other images will be registered.

typeofTransform

the type of registration desired; this value is passed onto the registration function from extrantsr.

interpolator

the type of interpolation desired; this value is passed onto the antsApplyTransforms function from ANTsRCore

Value

A list containing image_reg (the registered version of fullimage) and label_reg (the registered version of labelimage).

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Not run: 
library(neurobase)
library(fslr)
flair <- readnii('path/to/flair')
t1 <- readnii('path/to/t1')
tissue.class= <- fast(t1, opts='--nobias')
registered <- labelreg(t1,tissue.class,flair)
t1_reg = registered$image_reg
tissue.class_reg = registered$label_reg 
## End(Not run)

neuroconductor-devel/lesiontools documentation built on May 15, 2019, 3:16 p.m.