If you just run get_totals, it will prompt you for input image(s), and
return the total volume of tissue (assuming the images are segmented
tissue classes, which is what this is designed for). If you want to
specify a threshold of 0.2, you could do:
totals = get_totals(, 0.2);
If you want to specify a mask, it would be:
totals = get_totals(, 0.2, 'mask.nii');
In the above examples leaving the first argument (files) blank will
bring up a file selection window. Alternatively you can specify a
file (or more) in the script, and avoid the GUI altogether:
totals = get_totals('c1xyz.nii', 0.2, 'mask.nii');
If you want a list of the files selected, you can use this syntax:
[totals, files_selected] = get_totals...
which will give you the total volumes in totals, and the names of the
files in files_selected.
Hope this helps,
2009/7/14 <Haibo> <Xu> <[log in to unmask]>:
> Dear Jonathan:
> I got the script created by Ged Ridgway as follows:
> I do not know how to use it. Would you mind to give me a detailed example
> using get_totals.m. So far I have the files including the volume and mask in
> image format and threshold value. Thanks in advance.