That's right... 
So, if your image.nii.gz file had voxels whose dimensions were 0.5 x 0.5 x 0.5mm, then your command/output should look like this:
fslstats image.nii.gz -V
3924  490.5

where 3924 would indicate the number of non-zero voxels and 490.5 would indicate the volume.


On Apr 28, 2011, at 10:23 PM, WangPing wrote:

yes the voxel size is 1x1x1mm, thanks a lot.
Just curious, if the voxel size is other, such as 0.5mm x 0.5mm x 0.5 mm, then the first output would be still the voxels, but the second should be volume = voxels x voxel_size(0.5x0.5x0.5), is this correct? many thanks
 

 

Date: Thu, 28 Apr 2011 22:13:31 -0400
From: [log in to unmask]
Subject: Re: [FSL] fslstats volume measurement
To: [log in to unmask]

output <voxels> <volume>

Looks your input image has voxel dimensions of 1x1x1mm.

Cheers,
David


On Apr 28, 2011, at 10:04 PM, WangPing wrote:

sorry to bother, but should be a simple question:
what is the two output values when I use "fslstats image.nii.gz -V"?
For example:
 
fslstats image.nii.gz -V
the output is:
3924  3924.00
 
thanks,
ping wang