[Dcmlib] Re: Padding character

Mathieu Malaterre mathieu.malaterre at kitware.com
Thu Apr 20 23:04:39 CEST 2006


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)

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
>>
> 
> 
> 




More information about the Dcmlib mailing list