fslmaths inputimage -mul -1 -add 1 -thr 0.5 -bin outputimage
The threshold and binarisation are not strictly necessary but it helps deal
with any rounding errors.
All the best,
Mark
On 7 Dec 2011, at 19:26, Rodrigo Perea wrote:
> So, I have a brain mask with 1 as the intensity inside the brain mask and 0 outside.
> Basically, I'll like to know if there is a way to reverse it...so I have 1 outside the mask and 0 inside. I was looking into
> the fslmaths but I dont seem to find a good solution.
> Thanks in advance,
> Rodrigo
>
|