SimpleITK dicom series, read tags

Dear ITK users,

As we are working on a reader study, we want to change some dicom tags so the reader is unable to discover which of the images they are looking at. Previously I wrote tool for that in ITK, which works well, but since those computers usually run windows, I have tried writing it in SimpleITK.

I follow the following example: https://github.com/SimpleITK/SimpleITK/blob/master/Examples/DicomSeriesReadModifyWrite/DicomSeriesReadModifySeriesWrite.py

However, I cannot read the dicom tags, as I get the following error: AttributeError: ‘ImageSeriesReader’ object has no attribute ‘MetaDataDictionaryArrayUpdateOn’

Do I need to compile a certain version of SimpleITK (which would defeat the purpose), or what else am I doing wrong? Reading the tags of single files works well, by the way.

1 Like

You are looking at the current development branch, master, and not the release. We recently added that convenience method.

Here is the example for the 1.0 release:
https://itk.org/SimpleITKDoxygen100/html/DicomSeriesReadModifyWrite_2DicomSeriesReadModifySeriesWrite_8py-example.html

1 Like