Duke-UNC Brain Imaging and Analysis Center
BIAC Forums | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Support Forums
 Analysis Software Support
 Question about avwroi

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 12 2007 : 09:16:41 AM
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

4   L A T E S T    R E P L I E S    (Newest First)
crozier Posted - Jun 12 2007 : 10:41:07 AM
Thanks, Syam!
syam.gadde Posted - Jun 12 2007 : 10:32:27 AM
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)
crozier Posted - Jun 12 2007 : 10:26:45 AM
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
syam.gadde Posted - Jun 12 2007 : 10:00:14 AM
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

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