Duke-UNC Brain Imaging and Analysis Center
BIAC Forums | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Support Forums
 Analysis Software Support
 Creating a mask from the AAL template

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
crozier Posted - Jun 11 2007 : 5:13:07 PM
Hi,

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?

Thanks,
Joe

4   L A T E S T    R E P L I E S    (Newest First)
crozier Posted - Jun 11 2007 : 5:31:52 PM
It got it to work now.

Joe
syam.gadde Posted - Jun 11 2007 : 5:31:52 PM
Maybe you're using a different avwmaths++ than I am:

which avwmaths++

will tell you what you're using.

Try this:

/usr/local/packages/fsl/bin/avwmaths++ aal_MNI_V4.hdr -thr 40.9 -uthr 41.1 left_amygdala.nii.gz
crozier Posted - Jun 11 2007 : 5:28:20 PM
Hey Syam,

I just copied your text exactly and pasted it and still got the same error. I don't get it...

Joe
syam.gadde Posted - Jun 11 2007 : 5:21:34 PM
I ran it on golgi on the original analyze files and it worked without error:

env FSLOUTPUTTYPE=NIFTI_GZ avwmaths++ aal_MNI_V4.hdr -thr 40.9 -uthr 41.1 left_amygdala.nii.gz

(the env FSLOUTPUTTYPE=NIFTI_GZ is in case you haven't set up your FSL environment, but you must have had it set already since it didn't complain)

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