Duke-UNC Brain Imaging and Analysis Center
BIAC Forums | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Support Forums
 Analysis Software Support
 BIAC MATLAB ROI Format

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkInsert EmailInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
charles.michelich Posted - Feb 28 2003 : 09:22:53 AM
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

BIAC Forums © 2000-2010 Brain Imaging and Analysis Center Go To Top Of Page
This page was generated in 0.34 seconds. Snitz Forums 2000