Table Of Contents

Previous topic

Viewing or changing SPM Defaults

Next topic

Frequently Asked Questions

Building ROIs in MarsBaR

Downloading and installing MarsBaR

See http://marsbar.sourceforge.net/

Defining a (spherical) ROI

  1. Start MarsBaR by clicking Toolbox > MarsBaR, or typing marsbar from the Matlab command line.
  2. ROI definition > build
  3. Type of ROI > sphere
  4. Centre of sphere (mm) > the XYZ coordinates (for example, 17 -28 -17)
  5. Sphere radius (mm) > whatever you want the radius to be (typically 3-5 mm)
  6. It is probably ok to leave the description and label as the defaults, but you can change. Then select where to save this file.

The resulting ROI is a Matlab .mat file that contains information about the region (in this case, sphere). However, it is not tied to any specific MRI image or space. That is, you could use this ROI to extract data from many kinds of images.

Creating an image ROI

Once you have a MarsBaR ROI in .mat format, you may want to create a Nifti image of the ROI. (In a typical ROI image, the voxels in the ROI have a value of >0, everywhere else 0.)

  1. Start MarsBaR by clicking Toolbox > MarsBaR, or typing marsbar from the Matlab command line.
  2. ROI definition > export
  3. Export ROI(s) to > image
  4. (Select ROI)
  5. Space for ROI image > base space for ROIs, or select one of the images you are using in the analysis (e.g., a normalized EPI image for an fMRI study). This is the stage that determines the voxel space and voxel size used for extraction.
  6. Directory to save image > (whatever you want)
  7. Specify filename, and you’re done.

Viewing a MarsBaR (.mat) ROI

To look at the fruits of your labor in MarsBaR:

  1. ROI definition > view
  2. Select one or more .mat ROI files

Viewing an image ROI

To view the binary image ROI in SPM, you can use the Display button.

To view the binary image in mricron, you can overlay it on a built-in template (or any image in the same space as the ROI).