Skip to content

Releases: DIAGNijmegen/picai_prep

Version 2.1.8

17 Oct 15:29
d3e1036
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v2.1.6...v2.1.8

Version 2.1.6

28 Mar 13:14
48180cd
Compare
Choose a tag to compare

What's Changed

  • Remove common prefixes from filenames when checking DICOM slice filenames by @joeranbosma in #45
  • dcm2mha type hinting and output filename by @joeranbosma in #46

Full Changelog: v2.1.4...v2.1.6

Version 2.1.4

20 Mar 10:31
5f67119
Compare
Choose a tag to compare

What's Changed

Full Changelog: v2.1.3...v2.1.4

Version 2.1.3

15 Mar 15:46
c0a76e6
Compare
Choose a tag to compare
  • Logging mha2nnunet (#32): Write the traceback to the log when an error occurs, instead of silently
    continuing.
  • mha2nnunet: skip converted cases (#35)

Version 2.1.2

10 Nov 13:25
376ccc6
Compare
Choose a tag to compare
  • Verify DICOM filenames bugfix (#31)
  • Improve robustness (#29)
    • Read metadata more reliably
    • Cleanup terminal output, by prioritizing dicom.zip
    • Cleanup spacing naming & ensure in-plane resolution

Version 2.1.0

27 Sep 15:07
dabdae7
Compare
Choose a tag to compare

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.

Version 2.0.0

31 Aug 09:37
285deef
Compare
Choose a tag to compare

Major updates:

  • Archives are now converted case-by-case, instead of performing each phase after the other (i.e. collecting metadata for all cases, then converting images).
  • Logging has improved and now offers three levels of verbosity: 1) show full case log when something goes wrong (default), 2) show full log for all cases, and 0) off.
  • Improved usability of command-line interface: both DICOM → MHA and MHA → nnU-Net conversions are now available, as well as the generation of the conversion settings.
  • Conversion of dynamic contrast-enhanced (DCE) scans is now supported (but experimental, feedback is welcome).

Updates that may require you to update your existing scripts:

  • Some parameter names have changed (e.g. input_path to input_dir in MHA2nnUNetConverter). Please refer to the README or source code for the new values.
  • Conversion settings for DICOM → MHA now require the patient_id and study_id for each item.

Minor updates:

  • Multiprocessing is now optional. Set num_threads=1 to turn off.
  • Improved creation of dataset.json for nnUNet raw data archive.
  • Any DICOM tag can now be used to match cases to their target MHA file.
  • The way values from DICOM tags are matched with the provided values is now configurable. See Dicom2MHAConverter's docstring for details.

Improved testing:

  • Test DICOM → MHA conversion from both Python and the command line interface
  • Test conversion of DCE scans

Version 1.3.2

14 Jun 14:46
19a0ef2
Compare
Choose a tag to compare
  • Multiprocessing for dcm2mha and mha2nnunet (#3)
  • Increase flexibility dcm2mha pipeline (#5)
  • Allow centre crop to (maximal) physical space (#6)
  • Improved resampling to original/reference scan (#6)

Version 1.2

19 May 20:16
0b46a5d
Compare
Choose a tag to compare

Implemented a new resampling strategy to harmonize the different sequences for mha2nnunet. This new resampling method is simpler and better, so the old convoluted way has been removed.

Version 1.1.1

09 May 13:03
Compare
Choose a tag to compare
v1.1.1

Bugfix