How to use "DICOM Export" without changing/removing tags of DICOM?

Dear developers and users

After using “DICOM Export” for a series images of PET, I get dicom files that these tages (DICOM metadata) are changed or removed (Attributes as “Modality”, “PatientName”, “RescaleIntercept”, “RescaleSlope”, “RescaleType” and many other tags).

I can edit these tags using softwares such as “DicomBrowser”, but this is a very time consuming task and it’s not accurate. I think that 3DSlicer must be able to do it.

At now, my question:
How can I use “DICOM Export” for one series images of PET processed without changing or removing non of original tags of DICOM?

Please guide me,
Thanks a lot,

Patient and study level tags can be preserved by exporting them from the same patient/study. Or if you export one and want to export more, then check the Save tags checkbox when exporting after editing these fields.

RescaleIntercent and slope are volume-specific tags that I don’t think the ScalarVolume exporter plugin can currently provide.

You can open DICOM Browser, select the data you want to export, and click right mouse button to select the location on disk to export to.


Yes you can do this if your volume has not changed. But then why would you want to use Slicer for export if you already have it…

I obviously don’t know what the user actually wants to do… But there are many situations where one might want to export from DICOM Browser, such as DICOM series was created by Slicer, need to export to move the file to another computer/dropbox/flashdrive. Sorry if my response only added confusion.

Not at all, I just pointed out that what we can see in the DICOM browser is the original data. If we change it in any way, then we’ll need to go through the 1) subject hierarchy DICOM exporter or the 2) Create DICOM series module (which is a legacy module as far as I’m concerned, but it can still probably do things that the other one cannot).

Yes, but with few exceptions. PETDICOM extension plugin transparently creates a new DICOM RWVM series that gets added to the DICOM DB, and so does QuantitativeReporting creating new SEG and SR series.

1 Like

Dear Csaba and Andrey

Thanks a lot for your guidance. Sorry I did not give any feedback.
I have to point out what I want to create three landmarks on PET/CT images and then export them to TPS for doing research.
After adding the landmarks to both two series of PET/CT images, I do what Andrey pointed out. As you mentioned in your messages, this method does not apply changes in new DICOM series.
I do this work (editing DICOM tags) using DicomBrowser.

It seems that Pydicom can do it, but when I want to install and use it in Python Interactor of 3DSlicer, I get the following error:

import pip
pip.main([‘install’, ‘pydicom’])
Requirement already satisfied: pydicom in ./Slicer-4.8.1-linux-amd64/lib/Python/lib/python2.7/site-packages
You are using pip version 9.0.1, however version 18.0 is available.
You should consider upgrading via the ‘pip install --upgrade pip’ command.

import pydicom
Traceback (most recent call last):
File “”, line 1, in
ImportError: No module named pydicom

I was looking for commands in Python and Slicer API smiliar to dicominfo (to edit tags) and dicomwrite.
Please guide me if such commands/functions are available in Slicer API and python.

Please guide me.

pydicom is already bundled with Slicer. Use import dicom (and not import pydicom).

Thanks a lot Andras.
Where can I find tutorials about using dicom in 3DSlicer to edit tags and then write DICOM files?

It’s a regular Python package, so there is no Slicer-specific tutorial, just check out their website about how to use it.