What do you want to save?
Add Code snippet
New code examples
-
Shell/Bash 2021-10-12 06:23:06
fslstats
#!/bin/sh # Get mean (-M) and standard deviation (-S) of a masked (-k) region # (e.g., a statistical image) fslstats img_stats -k mask -M -S # Test if an image is a binary mask: # -M gets the mean of non-zero voxels. # -S gets the standard deviation... Add solution -
Shell/Bash 2021-08-31 20:40:02
fsl atlas
#!/bin/sh # List co-ordinates of each labeled region in an atlas with fslstats. # Use preoption -K < indexMask > will generate seperate n submasks from # indexMask, for indexvalues 1..n where n is the maximum index value # in indexMask, and gene... Add solution -
Shell/Bash 2021-08-30 19:24:01
fsl label
#!/bin/sh # List co-ordinates of each labeled region in an atlas with fslstats. # Use preoption -K < indexMask > will generate seperate n submasks from # indexMask, for indexvalues 1..n where n is the maximum index value # in indexMask, and gene... Add solution -
Shell/Bash 2021-08-30 13:28:02
fsl scale
#!/bin/sh if [ $# -lt 1 ] ; then echo "Usage: $0 <filename>" ; exit 1 ; fi img=$(remove_ext ${1}) min=$(fslstats ${img} -R | awk '{ print $1 }') max=$(fslstats ${img} -R | awk '{ print $2 }') scaling=$(echo "scale=5; 255.0 / (... Add solution -
Shell/Bash 2021-08-26 10:45:02
fsl stats
#!/bin/sh if [ $# -lt 1 ] ; then echo "Usage: $0 <filename>" ; exit 1 ; fi img=$(remove_ext ${1}) min=$(fslstats ${img} -R | awk '{ print $1 }') max=$(fslstats ${img} -R | awk '{ print $2 }') scaling=$(echo "scale=5; 255.0 / (... Add solution