在覆盖DICOM中的像素数据时,应替换UID以外的哪些DICOM标签? [英] Which DICOM tags other than UIDs should be replaced while overwriting pixel data in DICOM?
问题描述
这是我的另一个问题:
覆盖DICOM中的像素数据时应替换哪个DICOM UID?
我试图从现有的DICOM文件(实例)中创建一个新的DICOM文件,在此我更改像素数据.
除了上面提到的其他问题,我了解需要更改哪些 UID .
我应该更改哪些除UID以外的其他标签,以便在替换像素数据时获得有效的DICOM?
更新:
在这种情况下,我正在使用 RT剂量IOD ,但是我无法提供匿名标头,但是解决方案
有许多DICOM标签取决于像素数据.最常见的可能是以下几种:
取决于图像尺寸:
-
列
/行
-定义图像的X/Y尺寸 -
帧号
-用于多帧图像,尽管根据SOP类还有更多的标签要适应 定义一个像素物理尺寸的 - 标签-根据SOP类,可能是
Pixel Spacing
,Imager Pixel Spacing
或Pixel Aspect Ratio
-基本上是图像中已经存在的标签
与数据类型相关:
-
已分配的位
-通常为8或16,具体取决于每个数据点的字节数 -
已存储的位
-已使用位的实际数量,通常在8到16之间 -
高位
-存储的位
-1 -
每像素样本
-通常对于RGB为3,对于单色图像为1 -
像素表示
-0表示无符号,1表示签名的数据 -
光度学解释
-取决于颜色模型,对于未压缩的彩色图像,通常为RGB
,对于黑白图像,通常为Monochrome2
;对于压缩数据,有很多可能的值,还有一些与压缩有关的标签,但我假设您正在写入未压缩的数据
您还可以将图像类型
修改为 DERIVED \ SECONDARY \ ...
,当然还要修改另一个问题中提到的UID.>
取决于您的SOP类,还有更多标记要考虑,但是这些标记可能是基本标记.
更新:这是关于通用图像DICOM文件的,因为最初没有提供SOP类.有关RT Dose图像的更多特定信息,请通过@kritzel_sw查看答案.
This is in continuation with my other question:
Which DICOM UIDs should be replaced while overwriting pixel data in DICOM?
I am trying to create a new DICOM file (instance) from an existing one, where I change the pixel data.
Form other question mentioned above, I understood what UIDs I need to change.
What other tags except UIDs should I change in order to get a valid DICOM while replacing the pixel data?
UPDATE:
In this case I am working with RT Dose IOD, unfortunately I cannot provide anonymized header but the documentation is describing the attributes.
There are a number of DICOM tags that depend on the pixel data. The most common ones are probably the following:
Depending on image dimensions:
Columns
/Rows
- defines the X/Y dimensions of the imageFrame Number
- for multi-frame images, though there are more tags to be adapted depending on the SOP Class- tags that define the physical dimensions of one pixel - depending on the SOP class, this may be
Pixel Spacing
,Imager Pixel Spacing
, orPixel Aspect Ratio
- basically the tag that is already present in your image
Data type related:
Bits Allocated
- usually 8 or 16, depending on the number of bytes per data pointBits Stored
- the real number of used bits, usually between 8 and 16High Bit
-Bits Stored
- 1Samples Per Pixel
- usually 3 for RGB and 1 for monochrome imagesPixel Representation
- 0 for unsigned, 1 for signed dataPhotometric Interpretation
- depends on the color model, usuallyRGB
for uncompressed color images, andMonochrome2
for b/w images; for compressed data, there is a number of possible values, and also some compression-related tags, but I assume that you are writing uncompressed data
You may also adapt Image Type
to be something like DERIVED\SECONDARY\...
, and of course the UIDs that are mentioned in the other question.
There are more tags to be considered depending on your SOP Class, but these are probably the basic ones.
UPDATE: This is about generic image DICOM files, as originally, the SOP class has not been given. For more specific information about RT Dose images, check out the answer by @kritzel_sw.
这篇关于在覆盖DICOM中的像素数据时,应替换UID以外的哪些DICOM标签?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!