Hi Filip,
Thanks for being a great host in Tubingen. AFNI doesn't allow saving those values because the operation happens in the rendering of the RGB display values. If you get the source code, you can see this in imseq.c. The gamma value calculation occurs after the range selection, LUT mapping, and then brightness and contrast computations. Still you can do something like this yourself with a simple 3dcalc command.
1dcount -digits 1 1 100 > i0.1D
1deval -a i0.1D\' -expr '100*(a/100)^0.5' | 1dplot -stdin
You would have to scale by the maximum and set the gamma value to what you want.
set gamma = 2.0
set max = `3dBrickStat -max -slow $dset`
3dcalc -a $dset -prefix $outdset -expr "$max*(a/$max)^$gamma"