Duke-UNC Brain Imaging and Analysis Center
BIAC Forums | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password   Forgot your Password?
 All Forums
 Support Forums
 Analysis Software Support
 Question about avwroi
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

crozier
New Member

19 Posts

Posted - Jun 12 2007 :  09:16:41 AM  Show Profile  Reply with Quote
Hi,

I would like to create a mask that is a 27 voxel cube around a given coordinate (45, 86, 64) (coordinates in voxels not mm). From the FSL documentation on the web it seems that I would use avwroi to do this.

The syntax is the following:
avwroi <input> <output> <xmin> <xsize> <ymin> <ysize> <zmin> <zsize> <tmin> <tsize>

The mask.nii.gz file is a 3-D with a "1" for all voxels in the brain so I thought this should be the input file.

I tried variations of the following without success thus far:
avwroi mask.nii.gz mask1.nii.gz [44, 2] [85, 2] [63, 2] [0, 0]

Anyone know the right syntax for this?

Joe

syam.gadde
BIAC Staff

USA
421 Posts

Posted - Jun 12 2007 :  10:00:14 AM  Show Profile  Reply with Quote
I think avwroi will create a 2x2x2 image as the output, which seems like it is not what you want. Perhaps you want to use avwmaths with the -roi option:

avwmaths mask -roi 44 2 85 2 63 2 0 0 mask1
Go to Top of Page

crozier
New Member

19 Posts

Posted - Jun 12 2007 :  10:26:45 AM  Show Profile  Reply with Quote
Hey Syam,

Thanks. I tried avwmaths with the following:

avwmaths mask.nii.gz -roi 39 2 56 2 63 2 0 0 mask2.nii.gz

However, when I check mask2 all of the voxels in the ROI are zero (as is the rest of the brain) even though mask.nii.gz has 1's for the whole brain.

Did I do something wrong here?

Joe


Joe
Go to Top of Page

syam.gadde
BIAC Staff

USA
421 Posts

Posted - Jun 12 2007 :  10:32:27 AM  Show Profile  Reply with Quote
Sorry try:

avwmaths mask -roi 44 2 85 2 63 2 0 1 mask1

(previously it said 0 0 for t, which means a size of 0)
Go to Top of Page

crozier
New Member

19 Posts

Posted - Jun 12 2007 :  10:41:07 AM  Show Profile  Reply with Quote
Thanks, Syam!
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
BIAC Forums © 2000-2010 Brain Imaging and Analysis Center Go To Top Of Page
This page was generated in 0.44 seconds. Snitz Forums 2000