Skip to content

Version 2.1.0

Choose a tag to compare

@joeranbosma joeranbosma released this 27 Sep 15:07
· 24 commits to main since this release
dabdae7

Read dicom zip
Implemented new DICOMImageReader to organise DICOM reading:

  • Read DICOM data from a folder or dicom.zip.
  • Improve support with pydicom: image origin and direction are now set correctly.
  • Fix metadata reading with pydicom: metadata is now read in the same way as SimpleITK.
  • Cleanup: split image reading with SimpleITK/pydicom to separate functions. Move pydicom-specific function get_pydicom_value to dcm2mha.py.
  • Update slice from which metadata is read to align with pydicom (now orientation etc. is read from the same slice as the metadata, which is better consistency anyway).
  • Added unit tests to verify image reading with SimpleITK and pydicom.

Add metadata reading to DICOMImageReader:

  • metadata can now be read without extracting anything from the dicom.zip.
  • bring the responsibility for checking DICOM filenames to DICOMImageReader.
  • added tests for reading from dicom.zip.