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)