sampledoc

ANTsR 0.0.0 documentation

Demonstrate plotANTsImage

«  Tutorial population study   ::   Contents   ::   Tips for functional MRI and resting state analysis  »

Demonstrate plotANTsImage

First, read an image. Then display with a simple command.

fn <- "../../demo/example_images/phantomtemplate.jpg"
img <- antsImageRead(fn, 2)
plotANTsImage(myantsimage = img)

Show an overlay

Next, create an artificial functional image by smoothing the background image.

Now use a overlay color on the background and display it.

simg <- antsImageClone(img)
SmoothImage(2, img, 3, simg)
plotANTsImage(myantsimage = img, functional = list(simg), threshold = "150x260",
    color = "red", axis = 1)

«  Tutorial population study   ::   Contents   ::   Tips for functional MRI and resting state analysis  »