Description Usage Arguments Value Author(s) Examples
Apply a transform list to map an image from one domain to another.
1 | myoutputimg<-antsApplyTransforms( fixed=imgf , moving=imgm , transformlist=txlist , interpolator=c("Linear","NearestNeighbor","MultiLabel") , imagetype = 0 )
|
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 . |
an antsImage is output. 1 – Failure
Shrinidhi KL, Avants BB
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.