ROI creation (SPM) (FSL)

SPM

Generate using wfu_pickatlas. If you use these for analysis in FSL, remember to swap the images x/y planes using fslswapdim then view the image on a canonical image in fslview to make sure the images are correctly oriented.

FSL

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 ones before doing the roi.

fslmaths /usr/local/fsl/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

Leave a comment