Learn R Programming

ANTsR (version 1.0)

visualizeBlob: Visualize cortical blob

Description

Visualize a cortical blob on a white matter segmentation of a template.

Usage

visualizeBlob(template, blob, outname='wmBlob', dim=3)

Arguments

template

Template used for visualization. Can be image or file name to be read

blob

Blob to be visualized. Assumed to be in same space as template. Can also be image or file.

outname

Prefix for output png images.

dim

Dimension of images.

Value

List with entries mask (the mask for the template), seg (the 3-tissue segmentation of the template), and glassbrain (the glass brain generated from the template).

Details

Visualization settings are optimized for 1mm isotropic resolution images. Viewing angles may also need to be modified for different templates.

Examples

Run this code
# NOT RUN {
  template <- antsImageRead(getANTsRData("mni"), 3)
  lab <- antsImageRead(getANTsRData("mnia"), 3)
  blob <- maskImage(lab, lab, 21)
  visualizeBlob(template, blob)
# }

Run the code above in your browser using DataLab