[Dcmlib] Bits stored and bit allocated

Jean-Pierre Roux jpr at creatis.insa-lyon.fr
Thu Jun 23 11:26:58 CEST 2005


Luca Picello wrote:

>> At 8:30 +0200 21/06/05, Luca Picello wrote:
>>
>>> Hello folks,
>>>
>>> I would like to know if dicom images, as the following I am adding 
>>> in attachment, can be correctly handled by gdcm in the next future.
>>> This dataset has :
>>> Bits Allocated: 16; Bits Stored: 13.
>>
>>> It should come from an Hitachi machine.
>>>
>>> The output should be masked with 0x1FFF ...
>>
Hi, Luca.
The bug is fixed.
Actually, the problem was in the fact we *did* mask the 'unused bits' 
... and we lost the 'sign bit'.
The solution is to 'propagate the sign bit' (the 13-th) upon the unused 
bits.

Anyway, thank you for providing data to fix the bug.
Jean-Pierre Roux

>>>
>>> Thank you,
>>> Luca
>>>
>>> ps: I will be traveling till next week so if you would like to have 
>>> the entire dataset for testing purposes just send me an email. I 
>>> will send it immediately when I'll be back.
>>
>
>
> Thank you,
> Luca
>



More information about the Dcmlib mailing list