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
Editing DICOM Image Header Information
Moderator: Moderator Team
-
- Posts: 16
- Joined: Mon, 2012-11-05, 10:52
Re: Editing DICOM Image Header Information
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.
In dimoImg.cc line 1989
int DiMonoImage::writeImageToDataset(DcmItem &dataset,const int mode,const int /*planar*/)
for example.
Re: Editing DICOM Image Header Information
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?
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?
-
- DCMTK Developer
- Posts: 2051
- Joined: Fri, 2004-11-05, 13:47
- Location: Oldenburg, Germany
- Contact:
Re: Editing DICOM Image Header Information
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
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
Who is online
Users browsing this forum: No registered users and 1 guest