Or you can change the datatype to one which can handle a larger range of values e.g. float32 or double.
Best
Torben
> Den 5. apr. 2024 kl. 13.02 skrev Chris Lambert <[log in to unmask]>:
>
> Zeros in the background - Try either
>
> (i1(i2>0))./(i2(i2>0))
>
> Where i1=T1, i2=t2
>
> That could be a bit messy depending on distribution of values in t2 (i.e. you may still get some v.big values) so imho probably better to make a mask (i3) using gm, wm (+/- csf) segmentations and doing same trick but using i3>0 instead of i2.
>
>> On 4 Apr 2024, at 16:15, Varun Arunachalam Chandran <[log in to unmask]> wrote:
>>
>> Hi everyone,
>>
>> I used the imcal (i1./i2) function to generate a T1/T2 myelin map. However, the output generated using i1./i2 equation displayed a white background (please see the attachment) with some infinite values and not the myelin map. Please could someone shed light on this question?
>>
>> thanks,
>>
>> kind regards,
>> Varun
>>
>> <HCD110411_T1T2ratio.jpg>
|