Skip to content
This repository has been archived by the owner on Mar 21, 2024. It is now read-only.

Speed up dicom loading by factor 30x #427

Merged
merged 6 commits into from
Apr 7, 2021
Merged

Conversation

melanibe
Copy link
Contributor

Move dicom loading function from SimpleITK to pydicom. Time improvement per dicom: 1.5 sec -> 0.05 sec.

Note: The load_dicom function now returns a 2D array if the input array was 2D (before array of shape [1, x, y] for 2D image). Conversion to 3D if necessary (e.g. to stack frames) is taken care of in the subsequent functions.

ant0nsc
ant0nsc previously approved these changes Mar 31, 2021
InnerEye/ML/utils/io_util.py Outdated Show resolved Hide resolved
dccastro
dccastro previously approved these changes Mar 31, 2021
@melanibe melanibe merged commit 59d6995 into main Apr 7, 2021
@melanibe melanibe deleted the melanibe/speed-up-dicom-loading branch April 7, 2021 08:16
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants