Is the “Other Word” VR legal for an 8-bit RGB image?

南楼画角 提交于 2019-12-06 04:47:13

The standard also defines how pixels values that use less or more bits than the word they are packed in are aligned in the word, so I think it is legal to have OW as VR (part 5 Annex D)

In order to change the endianness of the OW image data, you need to know the size of the words. If you don't know the word size, it is impossible to change the endiannes.

To go into a bit more detail, the endianness of a word refers to the ordering of the bytes within the word, either larger-to-smaller, or smaller-to-larger. If you don't know where the word boundaries are in a stream of bytes, it is impossible to re-order them, since you don't know what byte is currently in what position within the word.

The lack of words (ie. being nothing more than a stream / string of bytes) is what allows OB objects to be unaffected by the endiannness, since the words are effectively 1 byte long.

I would suggest referencing Annex A of PS 3.5 of the DICOM Standard. A.2 covers explicit VR little endian and states:

Data Element (7FE0,0010) Pixel Data - where Bits Allocated (0028,0100) has a value greater than 8 shall have Value Representation OW and shall be encoded in Little Endian; - where Bits Allocated (0028,0100) has a value less than or equal to 8 shall have the Value Representation OB or OW and shall be encoded in Little Endian.

So a VR of OW is acceptable for images with 8 bits allocated (such as RGB where 8 bits are allocated and there are 3 samples per pixel).

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!