Skip to content
stnava edited this page Jul 18, 2016 · 8 revisions

Welcome to the ANTsR wiki!

You can clone this repository for additional information.

See the sidebar for different notes and examples based on ANTsR.

More content is available in vignettes and in the ANTsR manual (see the release page).

quick tip: add export ITK_GLOBAL_DEFAULT_NUMBER_OF_THREADS=10 to your profile to enable multi-threading! can massively speed-up registration, segmentation and some basic operations ... but be careful if you are using on a cluster.

quick tip: you can link optimized numeric libraries to your installed R version in order to greatly accelerate matrix algebra. example on OSX:

cd /Library/Frameworks/R.framework/Resources/lib
ln -sf
/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Versions/Current/libBLAS.dylib
libRblas.dylib
# then in R 
system.time({ x <- replicate(5e3, rnorm(5e3)); tcrossprod(x) })