if (FALSE) {
cmtk.call("reformatx",'--outfile=out.nrrd', floating='floating.nrrd',
mask=TRUE, target.offset=c(1,2,3), FINAL.ARGS=c('target.nrrd','reg.list'))
# get help for a cmtk tool
system(cmtk.call('reformatx', help=TRUE))
}
if (FALSE) {
cmtk.system2(cmtk.call('mat2dof', help=TRUE, RETURN.TYPE="list"))
# capture response into an R variable
helptext=cmtk.system2(cmtk.call('mat2dof', help=TRUE, RETURN.TYPE="list"),
stdout=TRUE)
}
Run the code above in your browser using DataLab