Dear all,
I want to save image of the middle slice (on z axis) of binary image
This slice can be detect using
L1=`fslstats img.nii-w | cut -d' ' -f5`
L2=`fslstats img.nii -w | cut -d' ' -f6`
L3=`echo "$L1 +($L2 / 2)" | bc -l`
fslmaths img.nii -roi 0 600 0 600 $L3 1 0 1 test
fslview img.nii test -l Red
Is it possible to automatically save from the from the command line image in .png format of the axial orientation of this image (as appears in the viewer)
Many thanks
Moran
|