There is no very simple way to use this method to extract just a subset of the voxels, via a mask or something similar. Some method for this purpose could be put together using various combinations of Unix and AFNI commands, by someone sufficiently clever and motivated.
Giovanni,
If you are interested in such a thing, then as Bob said, it could
indeed be done with a small combination of UNIX and AFNI commands.
The nifti_tool program is good at printing out pieces of a dataset.
So if one were to enumerate the ijk indices of interest, and convert
the AFNI dataset to NIfTI (one 3dcalc command), it would be pretty
painless.
Please let me know if you are interested.
- rick