Which DICOM tags other than UIDs should be replaced while overwriting pixel data in DICOM?

孤者浪人 提交于 2021-02-11 06:51:17

问题


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.


回答1:


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 image
  • Frame 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, or Pixel 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 point
  • Bits Stored - the real number of used bits, usually between 8 and 16
  • High Bit - Bits Stored - 1
  • Samples Per Pixel - usually 3 for RGB and 1 for monochrome images
  • Pixel Representation - 0 for unsigned, 1 for signed data
  • Photometric Interpretation - depends on the color model, usually RGB for uncompressed color images, and Monochrome2 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.



来源:https://stackoverflow.com/questions/66132967/which-dicom-tags-other-than-uids-should-be-replaced-while-overwriting-pixel-data

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