Dear Jim,
Just to point out that there is a built-in facility in SPM to facilitate
this:
VM = spm_atlas('mask','Neuromorphometrics','middle frontal gyrus');
VM = spm_write_vol(VM,VM.dat);
Best regards,
Guillaume.
On 12/07/18 21:22, James Lee wrote:
> Yangyang,
>
> A neurologic atlas is here: spm12_7219/tpm/labels_Neuromorphometrics.nii
> and the definitions of the labels are in
> spm12_7219/tpm/labels_Neuromorphometrics.xml
>
> I use imcalc to separate out single ROI's. For instance, if I want
> bilateral middle frontal gyrus, I use imcalc and enter the
> labels_Neuromorphometrics.nii image with equation (i1==142) |
> (i1==143).
>
> Hope this helps!
>
> Jim
>
> On 7/10/18, Yangyang Bai <[log in to unmask]> wrote:
>> Dear SPM experts,
>>
>> I want to build a ROI mask for my MRI image(.nii). I right click on the
>> graphics and select ROI tool. Then a window pops out asking for ROI image. I
>> was wondering where can I get the ROI images of different anatomical region?
>> And after I mask the graphics how do I get the voxel matrix for the mask
>> image?
>> Thanks in advance,
>> Best,
>> Yangyang
>>
--
Guillaume Flandin, PhD
Wellcome Centre for Human Neuroimaging
University College London
12 Queen Square
London WC1N 3BG
|