Thanks guys. Matt's solution worked perfectly. Once I saw the solution, it was obvious.
- BettyAnn
> fslmaths <image> -Tmean -mul `fslval <image> dim4` <imageTsum>
>
> Peace,
>
> Matt.
>
> -----Original Message-----
> From: FSL - FMRIB's Software Library [mailto:[log in to unmask]] On Behalf
> Of bettyann
> Sent: Saturday, June 30, 2012 2:11 PM
> To: [log in to unmask]
> Subject: [FSL] fslmaths -Tsum?
>
> Hello,
>
> Is there a way to do something like fslmaths -Tsum?
>
> That is, I have a 4D volume where each 3D volume is a binary (0,1) mask. I
> want to find where any of these masks overlap in space. If I just sum down
> the 4th dimension, any overlapping voxels would be > 1.
>
> I suppose I could fslsplit my 4D volume and then serially sum them in a
> loop. Or I could read this volume into matlab and sum. But fslmaths -Tsum
> seems more elegant. And easier to execute.
>
> Thanks,
> * ba
|