覆盖DICOM中的像素数据时应替换哪些DICOM UID? [英] Which DICOM UIDs should be replaced while overwriting pixel data in DICOM?

查看:78
本文介绍了覆盖DICOM中的像素数据时应替换哪些DICOM UID?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图从现有的DICOM文件(实例)中创建一个新的DICOM文件,在此我更改像素数据.

I am trying to create a new DICOM file (instance) from an existing one, where I change the pixel data.

我知道在替换像素数据时需要更改一些UID.目前,我会在适用的情况下生成 SOPInstanceUID MediaStorageSOPInstanceUID ReferencedSOPInstanceUID .

I know that I need to change some of the UIDs while replacing pixel data. Currently I am generating SOPInstanceUID, MediaStorageSOPInstanceUID and ReferencedSOPInstanceUID wherever applicable.

是否需要更改其他一些UID才能获得有效的DICOM文件?如果您可以指出标准中的位置,这将对您有所帮助.

Are there some other UIDs that needs to be changed to get a valid DICOM file? It will be helpful if you can point me where to look for this in the standard.

推荐答案

以下是规范中有关UID唯一性的引文:

Following is a quote from specifications discussing about uniqueness of UIDs:

唯一标识符(UID)提供了唯一标识各种项目的功能.它们保证了在多个国家,站点,供应商和设备之间的唯一性.在DICOM讨论领域中,可以区分不同类别的对象,对象实例和信息实体,而不考虑任何语义上下文.
PS 3.5 2017a-数据结构和编码-9唯一标识符(UID)

如果要更改像素数据(将压缩(传输语法)更改为有损或全部覆盖),则必须更改 SOP实例UID(0008,0018).

If you are changing pixel data (changing compression (transfer syntax) to lossy or overwriting all together), you must change SOP Instance UID (0008,0018).

关于媒体存储SOP实例UID(0002,0003),它属于组2,即文件元信息标头.仅当您将实例序列化到硬盘时,这些标签才会出现.该值应与 SOP实例UID(0008,0018)的值相同.因此,如果您更改一个,则还应该更改其他.请参阅答案以及规范中的以下部分:

About Media Storage SOP Instance UID (0002,0003), as you notice, it belongs to group 2 i.e. File Meta Information header. These tags only present when you serialize the instance to hard disk. This should have same value as that of SOP Instance UID (0008,0018). So, if you change one, you should also change other. Please refer to this answer and following part in specifications:

C.12.1.1.1 SOP类UID,SOP实例UID
为所有DICOM IOD定义了SOP类UID和SOP实例UID属性.但是,它们仅在类型等于1的复合IOD中编码.请参见C.1.2.3节.编码后,它们应等于DIMSE服务和文件元信息标头中各自的属性(请参阅PS3.10媒体存储).
PS3.3 2021a-信息对象定义-C.12.1.1.1

引用的SOP实例UID(0008,1155)是对其他实例的引用.这取决于您是否需要根据情况进行更改.通常不需要.请参阅答案,以获取有关引用的SOP实例UID的更多详细信息.

The Referenced SOP Instance UID (0008,1155) is reference to other instance. It depends whether you need to change this or not based on your case; generally should not be needed. Please refer to this answer for more details about Referenced SOP Instance UID.

传输语法UID(0002,0010)需要根据您应用的新的传输语法进行更改.覆盖像素数据时,如果要更改它,请相应地更改UID.

The Transfer Syntax UID (0002,0010) needs to be changed according to the new Transfer Syntax you applied. While overwriting the pixel data, if you are changing it, change the UID accordingly.

SOP类UID(0008,0016)媒体存储SOP类UID(0002,0002)定义您的SOP类.仅更改像素数据就不会更改它.因此,您无需更改此UID.

The SOP Class UID (0008,0016) and Media Storage SOP Class UID (0002,0002) define your SOP Class. By just changing pixel data, you are not changing it. So you do not need to change this UID.

实施类UID(0002,0012)与创建者相关联.无需更改.

The Implementation Class UID (0002,0012) is associated with creator. No need to change.

决定取决于您的用例.这取决于您希望用户如何处理新创建的实例.说,在创建研究报告时,许多实现并不会更改研究IUID,而是会创建新的系列(即新的IUID系列).

Decision about Study Instance UID (0020,000D) and Series Instance UID (0020,000E) depends on your use case. It depends on how you want user to handle your newly created instance. Say, while creating report for Study, many implementations do not change Study IUID but do create new Series (i.e. new Series IUID).

有关更多详细信息,请参阅以下答案:
https://stackoverflow.com/a/46316162/5779732
https://stackoverflow.com/a/53775161/5779732

Please refer to following answers for more details:
https://stackoverflow.com/a/46316162/5779732
https://stackoverflow.com/a/53775161/5779732

这篇关于覆盖DICOM中的像素数据时应替换哪些DICOM UID?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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