I am trying to make a mask from the AAL template that's in the SPM2 directory. The file name is aal_MNI_V4.hdr/.img The region I am interested in has the value 41. To create the mask I first used avwchfiletype to change the image file to NIFTI_GZ. Then I tried to use avwmaths++ with the following command: avwmaths++ aal_MNI_V4.nii.gz -thr 40.9 -uthr 41.1 left_amygdala.nii.gz
However, I get the following error: ** ERROR: nifti_image_read(aal_MNI_V4): can't open header file ** ERROR: nifti_image_open(aal_MNI_V4): bad header info Error: failed to open file aal_MNI_V4 Cannot open volume aal_MNI_V4 for reading!
I also tried to run avwmaths++ on the ANALYZE version of the file and got the same message along with the following: Error:: FslGetIntensityScaling: Null pointer passed for FSLIO
I am able to open the image with FSLView without any problems. Any ideas about how to do this?