The 3dmaskdump program will write the voxel values
to an ASCII file.
Consider a command such as:
3dmaskdump -mask MASK+orig -noijk -o output.txt
Here, you supply a MASK+orig dataset, and output
is written to output.txt. Note the -noijk option,
in case you do not want voxel indices written out.
Please see '3dmaskdump -help' for details.
- rick