是“其他词”吗? VR适用于8位RGB图像吗? [英] Is the "Other Word" VR legal for an 8-bit RGB image?

查看:76
本文介绍了是“其他词”吗? VR适用于8位RGB图像吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

最近,我看到了一些带有大端传输格式的彩色DICOM文件,其中像素数据具有OW(其他字)值表示形式。文件中的字节顺序为

Recently I have seen some color DICOM files with big endian transfer syntax, where pixel data had OW (Other Word) value representation. Byte order in file is

R1G1B1R2G2B2 etc

AFAIK,根据DICOM标准(第5部分,第8.1节, )OW和OB之间的唯一区别是OB(一串字节)应不受Byte的影响排序 ),那么在将该图像转换为小端字节序时,应更改字节顺序,以使其变为

AFAIK, according to DICOM standard (part 5, Section 8.1, The only difference between OW and OB being that OB, a string of bytes, shall be unaffected by Byte Ordering), when converting this image to little endian, the byte order should be changed so that it will become

G1R1R2B2B2G2 etc

但这没有任何意义!该图像显然旨在具有其他字节值表示形式。作为有趣的细节,图像还包含带有较小版本像素数据的图标图像序列,该图像序列也具有OW VR,但实际上字节已交换! (以这种方式:G1R1R2B2B2G2)。所以甚至都不是一致的。

but this does not make any sense! This image was obviously intended to have Other Byte value representation. As interesting detail, the image also contained an Icon Image Sequence with a smaller version of pixeldata, that also had OW VR, but here the bytes were actually swapped! (in this manner: G1R1R2B2B2G2). So it's not even consistent...

我的问题是:甚至合法吗?我应该如何更改此类图像的字节序?

My question is: is it even legal? And how should I change the endianness of such an image?

编辑: for cdeszaq:根据DICOM标准第5部分7.3节:

for cdeszaq: acording to DICOM standard part 5, section 7.3:

不是字符串而是由多个字节组成的VR是:

2字节的US,SS,OW和AT

的每个组成部分4字节的OF,UL,SL和FL

8字节FD

VRs that are not a string of characters and consist of multiple bytes are:
2-byte US, SS, OW and each component of AT
4-byte OF, UL, SL, and FL
8 byte FD

这表明字长

推荐答案

该标准还定义了像素值如何使用比打包的单词少或多的位的字眼一致,因此我认为将OW用作VR是合法的(附件D第5部分)

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)

这篇关于是“其他词”吗? VR适用于8位RGB图像吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆