FSL: Useful commands: Difference between revisions

From Center for Cognitive Neuroscience
Jump to navigation Jump to search
(Undo revision 2714 by Aenalb (talk))
 
m (5 revisions)
 
(One intermediate revision by the same user not shown)
Line 4: Line 4:
fslmaths point -kernel sphere 9 -fmean sphereres -odt float<br>
fslmaths point -kernel sphere 9 -fmean sphereres -odt float<br>


Note that in the first command I do "-mul 0 -add 1" to make sure that the whole image is full of ones before doing the roi.
Note that in the first command I do "-mul 0 -add 1" to make sure that the whole image is full of zeros before adding one to the ROI.

Latest revision as of 03:13, 16 January 2014

Create a spherical ROI using fslmaths:

fslmaths $FSLDIR/data/standard/MNI152_T1_2mm -mul 0 -add 1 -roi 50 1 50 1 50 1 0 1 point -odt float
fslmaths point -kernel sphere 9 -fmean sphereres -odt float

Note that in the first command I do "-mul 0 -add 1" to make sure that the whole image is full of zeros before adding one to the ROI.