[Dcmlib] Re: Padding character

Jean-Pierre ROUX jean-pierre.roux at creatis.insa-lyon.fr
Fri Apr 21 09:24:44 CEST 2006


At 17:04 -0400 20/04/06, Mathieu Malaterre wrote:
>FYI, GDCM is not doing the proper padding and is always padding with 
>\0, whereas it's the contrary:
>- always pad with space
>- except for UID, (and of course UN, OB/OW)


==> OK.
I'll fix it.
JPRx

>
>Mathieu
>
>Ross wrote:
>>Mathieu
>>
>>If you cast your eye to Page 20 in PS 3.5 2004 about 2/3 down the 
>>page you'll see the following paragraph
>>
>>"Two character codes of the single-byte character sets invoked in 
>>the GL area of the code table, 02/00
>>and 05/12, have special significance in the DICOM Standard. The 
>>character SPACE, represented by bit
>>combination 02/00, shall be used for the padding of Data Element 
>>Values that are character strings. The
>>Graphic Character represented by the bit combination 05/12, "\" 
>>(BACKSLASH) in the repertoire ISO-IR
>>6, shall only be used in character strings with Value 
>>Representations of UT, ST and LT (see Section 6.2).
>>Otherwise the character code 05/12 is used as a separator for 
>>multiple valued Data Elements (see
>>Section 6.4)."
>>
>>I have always taken this to be the "global" setting unless 
>>specialised (as in the case of VR UI for example).
>>
>>Cheers
>>
>>Ross
>>
>>"Mathieu Malaterre" <mathieu.malaterre at gmail.com> wrote in message 
>>news:1145555396.197426.217460 at t31g2000cwb.googlegroups.com...
>>
>>>What is the padding character for let say VR=CS,LO,DS and such. All I
>>>could find is in PS 3.5:
>>>
>>>...
>>>If padding is required to make the Value Field of even length, a single
>>>padding character shall be applied to the end of the Value Field (to
>>>the last Value), in which case the length of the last Value may exceed
>>>the Length of Value by 1.
>>>...
>>>
>>>But it never specify that it *should* be a space character. The only
>>>explicit one I could find was the UID where one and only one \0 is
>>>allowed to pad the UID.
>>>
>>>Comments ?
>>>Mathieu
>>>
>>
>>
>>
>
>_______________________________________________
>Dcmlib mailing list
>Dcmlib at creatis.insa-lyon.fr
>http://www.creatis.insa-lyon.fr/mailman/listinfo/dcmlib

   Jean-Pierre ROUX
   CREATIS - CNRS UMR 5515, INSERM U 630
   Laboratoire de Radiologie Experimentale
   Hopital Cardiologique
   28 Avenue du Doyen LEPINE
   B.P. Lyon-Montchat
   69394 Lyon Cedex 03
 
   Tel      : (+33) 04 72 35 74 12
   Fax      : (+33) 04 72 68 49 16
   URL      : http://www.creatis.univ-lyon1.fr
   e-mail   : jpr at creatis.univ-lyon1.fr
								   



More information about the Dcmlib mailing list