Duke-UNC Brain Imaging and Analysis Center
BIAC Forums | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password   Forgot your Password?
 All Forums
 Support Forums
 Analysis Software Support
 BIAC MATLAB ROI Format
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

charles.michelich
BIAC Alum

USA
183 Posts

Posted - Feb 28 2003 :  09:22:53 AM  Show Profile  Reply with Quote
Information on BIAC MATLAB ROIs:

What is the format of the BIAC MATLAB ROIs generated using overlay2?

The BIAC MATLAB ROIs are MATLAB .mat files containing a single structure named "roi". This structure includes the size of the image in which the ROI is located, the slices included in the ROI, and the indicies within each slice included in the ROI. Optionally, there are two additionaly fields containing a color and value which are used in overlay2, but contain no meaningful information outside of that context.

How do I use these ROIs in my own MALTAB functions and scripts?

The function roistats can be used to determine statistics within one or more ROIs for a specified MR time series. If this function does not fulfill your needs, you can use the functions roi2mask and mask2roi to convert the BIAC MATLAB ROIs into logical masks.

Here is an example of reading in an roi and converting it into a logical mask:

roifilename='e:\myroi.roi';  
tmp=load(roifilename,'roi','-mat');
mask=roi2mask(tmp.roi);

Also, the function roi2ind can be used to convert the BIAC MATLAB ROIs into linear indicies.

How can I tell if an ROI is a valid BIAC MATLAB ROI?

There is a function called isroi that can be used to verify that a ROI is a valid BIAC MATLAB ROI.

Enjoy,
Chuck

Edited by - charles.michelich on Feb 28 2003 09:41:33 AM
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
BIAC Forums © 2000-2010 Brain Imaging and Analysis Center Go To Top Of Page
This page was generated in 0.47 seconds. Snitz Forums 2000