History of AFNI updates  

|
November 07, 2008 12:39PM
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
Subject Author Posted

absolute maximum with sign

cesar caballero November 07, 2008 12:39PM

Re: absolute maximum with sign

ziad November 07, 2008 12:47PM

Re: absolute maximum with sign

Daniel Glen November 07, 2008 02:36PM