fslstats
#!/bin/sh
# Peaks: -x : output coordinates of the maximum intensity voxel
fslstats img -x
Troubled Tapir
#!/bin/sh
# Peaks: -x : output coordinates of the maximum intensity voxel
fslstats img -x
#!/bin/sh
# Center of gravity:
# -C : output centre-of-gravity (cog) in voxel coordinates
# -c : output centre-of-gravity (cog) in mm coordinates
fslstats mask -C -c
#!/bin/sh
# Get the voxel count for a mask
fslstats mask -V | awk '{printf $1 "\n"}'
# Get the volume in cubic mm for a mask
fslstats mask -V | awk '{printf $2 "\n"}'