How to create bilateral ROI masks?

Submitted by yaosir on

Dear experts,

I would like to create a mask including two 3-mm spheres representing right and left dACC, since I am not interested in lateralization of this regions and try to avoid the issue of multiple correction (2, right and left). However, I failed to find the way to create such a bilateral ROI mask. I will be really apreciated if anyone of you could help me to solve this question.

Best,

Vincent

YAN Chao-Gan

Thu, 01/15/2015 - 14:39

Hi Vincent,

You can use this command

[SphereData, Header] = y_Sphere(Center, Radius, RefFile, OutFile, Unit)

To generate the two Sphere ROIs.

And then you can use Image Calculator: i1+i2 to add them together.

Best,

Chao-Gan

 

Hi Chao-Gan,

Thank you for your rapid reply.

Because I am not familiar with the use of command, I still have some questions. I wonder if the following steps are correct: 1. type this command in the command window in Matlab, 2. replace (Center, Radius, RefFile, OutFile, Unit) with specific items.

In addition, I would like to confirm with you the meaning of the command. [SphereData, Header] is the function used in rest? Center and Radius are with obvious meaning, but what the RefFile, OutFile, and Unit (millimeter?) stand for? 

Thank you in advance,

Vincent

Hi Vincent,

RefFile: a file define the space that you want to create the ROI.

OutFile: A filename you want to output the ROI.

Unit: just leave it blank, it will use XYZ millimeter coordinates.

You can ignore the output data "SphereData, Header", but just look at the output file "OutFile".

Best,

Chao-Gan