Hello,
I would like to compute the absolute maximum of a set of sub bricks, but keep the sign of that value. Option -absmax in 3dTstat computes the maximum but does not keep the sign of that maximum.
One option would be to combine the output of -argabsmax in 3dTstat and then use 3dcalc with an expression like
3dcalc -a absmax+orig -b argabsmax -c dataset -expr '-1*a*isnegative(c
) + a*ispositive(c)'
However, as far as I know, 3dcalc does not allow sub-brick selection with another sub-brick.
Any help?
Thanks very much,
Cesar