Editing DICOM Image Header Information

All other questions regarding DCMTK

Moderator: Moderator Team

Post Reply
Message
Author
helioars
Posts: 14
Joined: Mon, 2010-06-14, 11:46

Editing DICOM Image Header Information

#1 Post by helioars » Wed, 2013-12-18, 02:28

If we edit any header information in the DICOM file do we also have to alter or provide new UID values for Study, series and Image.
If we edit the contents of DICOM file, then what other relevant DICOM tags / information's should be updated?

Can you give me links or information regarding the Editing of DICOM images?

Thanks

dragon_fly
Posts: 16
Joined: Mon, 2012-11-05, 10:52

Re: Editing DICOM Image Header Information

#2 Post by dragon_fly » Wed, 2013-12-18, 04:46

You can see the method "writeImageToDataset" in DicomImage class

In dimoImg.cc line 1989
int DiMonoImage::writeImageToDataset(DcmItem &dataset,const int mode,const int /*planar*/)
for example.

helioars
Posts: 14
Joined: Mon, 2010-06-14, 11:46

Re: Editing DICOM Image Header Information

#3 Post by helioars » Wed, 2013-12-18, 06:42

In the mentioned function, information related to the update of UIDs are not present.

I would like to get information on whether we have to update the UID tags also if we edit any information of DICOM image file?

Michael Onken
DCMTK Developer
Posts: 1821
Joined: Fri, 2004-11-05, 13:47
Location: Oldenburg, Germany
Contact:

Re: Editing DICOM Image Header Information

#4 Post by Michael Onken » Fri, 2014-01-03, 12:53

Hi,

you have to updated the SOP Instance UID if the medical interpretation of the image changes. That is what is being sad in the standard. You have to modify the Series or Study Instance UID if you want the file to be in another series/study afterwards.

The attributes that must be modified depend on the modification of course. If you change the pixel data from grayscale to color for example, Photometric Interpretation and other image-related attributes might change.

Best,
Michael

Post Reply

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 1 guest