From 4458895b05de8bdf7345fc09e0d6b334c63ab6c9 Mon Sep 17 00:00:00 2001 From: Mark Jenkinson <mark@fmrib.ox.ac.uk> Date: Wed, 13 Aug 2008 13:30:39 +0000 Subject: [PATCH] Fixed buglet for reporting number of voxels in a 4D file with -v --- fslstats.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fslstats.cc b/fslstats.cc index efdd0f6..7d84925 100644 --- a/fslstats.cc +++ b/fslstats.cc @@ -357,8 +357,8 @@ int fmrib_main_float(int argc, char* argv[]) cout << (long int) mask.sum() << " " << mask.sum() * vol.xdim() * vol.ydim() * vol.zdim() << " "; } else { - cout << (long int) vol.nvoxels() << " " - << vol.nvoxels() * vol.xdim() * vol.ydim() * vol.zdim() << " "; + cout << (long int) vol.nvoxels() * vol.tsize() << " " + << vol.nvoxels() * vol.tsize() * vol.xdim() * vol.ydim() * vol.zdim() << " "; } } else if (sarg=="-V") { if (masks_used) { -- GitLab