Print

Print


Dear Burkhard,

did you try

fslmaths A -add B C

?

That should add A and B and write the result in C

Jesper

On 4 Feb 2011, at 11:24, Burkhard Maedler wrote:

> Hi,
> how can I check which version of fslmaths I am using?
>
> My current version has a bug.
> To add two images the help says:
> -add   : add following input to current image (assuming the current  
> image is the first ???)
>
> so if I do:
> fslmaths A -add B
>
> I expect B will be added to A and the result will be overwritten in A?
>
> In my current version the opposite is true. A is added to B and B  
> gets overwritten!!!
>
> It seems that I cannot define a new result image as output that  
> contains the sum of A and B, can I?
>
> Burkhard
>