antsApplyTransforms: A simplified (or full) interface to antsApplyTransforms.

Description Usage Arguments Value Author(s) Examples

Description

Apply a transform list to map an image from one domain to another.

Usage

1
myoutputimg<-antsApplyTransforms( fixed=imgf , moving=imgm , transformlist=txlist , interpolator=c("Linear","NearestNeighbor","MultiLabel") , imagetype = 0 )

Arguments

fixed

fixed image defining domain into which the moving image is transformed.

movingImage

moving image to be mapped to fixed space.

transformlist

list of transforms generated by antsRegistration where each transform is a filename.

interpolator

choose the Linear, NearestNeighbor, MultiLabel or any other interpolator available in antsApplyTransforms.

imagetype

choose 0/1/2/3 mapping to scalar/vector/tensor/time-series .

Value

an antsImage is output. 1 – Failure

Author(s)

Shrinidhi KL, Avants BB

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## Not run: 
# will give the full form of help
antsApplyTransforms( "-h")
# example 1 - simplified
mywarpedimage<-antsApplyTransforms(fixed=fixed,moving=moving,transformlist=mytx$fwdtransforms)
mywarpedimage<-antsApplyTransforms(fixed=moving,moving=fixed,transformlist=mytx$invtransforms)
# full access via listing the inputs in standard ANTs format 
antsApplyTransforms( list( d=as.character(mi@dimension), i=moving,o=outimg,r=fixed,t=mytx$inv[1],sep='') ) ) 
antsApplyTransforms( list( d=as.character(mi@dimension), i=fixed,o=outimg,r=moving,t=paste("[",mytx$inv[1],",1]",sep='') ) ) 

## End(Not run)

stnava/itkImageR documentation built on May 30, 2019, 7:21 p.m.