View source: R/labelImageRegistration.R
labelImageRegistration | R Documentation |
Perform pairwise registration using fixed and moving sets of label images (and, optionally, sets of corresponding intensity images).
labelImageRegistration(
fixedLabelImages,
movingLabelImages,
fixedIntensityImages = NULL,
movingIntensityImages = NULL,
fixedMask = NULL,
movingMask = NULL,
initialTransforms = "affine",
typeOfLinearTransform = NULL,
typeOfDeformableTransform = "antsRegistrationSyNQuick[so]",
labelImageWeighting = 1,
outputPrefix = "",
randomSeed = NULL,
verbose = FALSE
)
fixedLabelImages |
A single (or set of) fixed label image(s). |
movingLabelImages |
A single (or set of) moving label image(s). |
fixedIntensityImages |
Optional—a single (or set of) fixed intensity image(s). |
movingIntensityImages |
Optional—a single (or set of) moving intensity image(s). |
fixedMask |
Defines region for similarity metric calculation in the space of the fixed image. |
movingMask |
Defines region for similarity metric calculation in the space of the moving image. |
initialTransforms |
If specified, there are two options:
1) Use label images with the centers of mass to a calculate linear
transform of type |
typeOfLinearTransform |
Use label images with the centers of
mass to a calculate linear transform of type |
typeOfDeformableTransform |
Only works with deformable-only transforms,
specifically the family of |
labelImageWeighting |
Float or vector of floats giving the relative weighting for the label images. |
outputPrefix |
String definining the output prefix for the filenames of the output transform files. |
randomSeed |
Definition for deformable registration. |
verbose |
Print progress to the screen. |
outputs a list containing:
Transforms to move from moving to fixed image.
Transforms to move from fixed to moving image.
Output of 1 indicates failure.
Tustison NJ
## Not run:
r16 <- antsImageRead( getANTsRData( "r16" ) )
r16Seg1 <- thresholdImage( r16, "Kmeans", 3 ) - 1
r16Seg2 <- thresholdImage( r16, "Kmeans", 5 ) - 1
r64 <- antsImageRead( getANTsRData( "r64" ) )
r64Seg1 <- thresholdImage( r64, "Kmeans", 3 ) - 1
r64Seg2 <- thresholdImage( r64, "Kmeans", 5 ) - 1
reg <- labelImageRegistration( list( r16Seg1, r16Seg2 ),
list( r64Seg1, r64Seg2 ),
fixedIntensityImages = r16,
movingIntensityImages = r64,
initialTransforms = 'affine',
typeOfDeformableTransform = 'antsRegistrationSyNQuick[bo]',
labelImageWeighting = c( 1.0, 2.0 ),
verbose = TRUE )
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.