Hi Antonio,
> ... output mean (for nonzero voxels) ...
>
> In FSL, the command is avwstats <input image> -M
>
> Is there a corresponding command (or toolbox) in SPM?
img = spm_read_vols(spm_vol('input_image.img'));
mean(img(img ~= 0))
should do the trick. There's probably a GUI for this in several of the
toolboxes too...
Best,
Ged.
|