I guess with some scripting:
flname="yourfile"
SlabThick=5
Xdim=$(fslval $flname dim1)
Ydim=$(fslval $flname dim2)
Zdim=$(fslval $flname dim3)
MaxZ=$(($Zdim-$SlabThick))
for cZ in $(seq 0 $SlabThick $MaxZ)
do
fslmaths $flname -roi 0 $Xdim 0 $Ydim $cZ $SlabThick 0 1 -Zmean
Slab_${cZ}
slicer Slab_$cZ -z 0 Slab_${cZ}.png
done
good luck,
wolf
On 07/04/2018 12:17 AM, Christian Rubbert wrote:
> Hey FSL-users,
>
> is it possible to calculate a mean image slab (e.g. combining five 1 mm slices to a single 5 mm slab, which is the mean of the voxels of the 5 slices only in the z-direction) using FSL? Ideally I would like to generate such a mean slab every 5 mm over a whole volume.
>
> Thank you very much!
>
> Best regards,
> Chrisitan
> ########################################################################
>
> To unsubscribe from the FSL list, click the following link:
> https://www.jiscmail.ac.uk/cgi-bin/webadmin?SUBED1=FSL&A=1
########################################################################
To unsubscribe from the FSL list, click the following link:
https://www.jiscmail.ac.uk/cgi-bin/webadmin?SUBED1=FSL&A=1
|