Extracting ROI Signals

Submitted by heretic133 on
Hi everybody,
 
I have a problem with extracting ROI signals that is driving me crazy, I hope I can find the answer here.
 
My teacher gave me some '.nii' files, these '.nii' files have been preprocessed with afni, now I want to extract the ROI signals using dpabi. the size of my fMRI data is 64 x 64 x 48, So I had to reslice the AAL mask, I used the Image Reslicer tool in dpabi, after that I used Roi Signal Extactor, but I face with this error: 

Error using y_ExtractROISignal (line 236)
Undefined function or variable 'MaskROILabel'.
 
I thought that the problem might come from my 'nii' files that I had been processed with afni, So I took a '.nii' file that had been processed with DPARSF, (the '.nii' file in FunImgARWSCF) yet again I face with the same error. 
 
I would really appreciate if you could help me out.

 

Here is what I do in details:

First I use the Image Reslicer to reslice my AAL template, for the image directory in image reslicer panel I choose 'aal.nii' from '/DPABI_V2.1_160415/Templates', and for the 'Reference' part I choose my target '.nii' file, (for this example I chose 'Filtered_4DVolume.nii' located in my 'FunImgARWSCF' folder).

As for the second part (ROI Signal Extractor), I choose the previous file 'Filtered_4DVolume.nii', and then I press "Define ROI" button, in the opened window I check 'Multiple labels in mask file' Option and press 'define other ROIs', But since the generated mask that was generated in the previous step was not a '.mat' file (it is .nii) I cant load it, So I decided to remane 'Reslice_aal.nii' to 'aal.nii' and replace it with the aal.nii file in '/DPABI_V2.1_160415/Templates', when I do this everything works fine with  'Filtered_4DVolume.nii', but when I do the above process with 'data.nii' (the result data from afni processing) I get this error:


 

As you can see the both size matches. But I get error.

Here is what my 'data.nii' looks like in afni:

and here is my 'Filtered_4DVolume.nii':