Replies: 1 comment
-
Hi @oseymour, thanks for reporting this. MONAI/monai/data/image_reader.py Line 399 in e1e3d8e |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Describe the bug
I get different dimensions when loading with the LoadImage transform and pydicom, even when specifying
reader="PydicomReader"
. The DICOM file is a multi-frame ultrasound file. Unfortunately, I can't share it here because this is for work.To Reproduce
Running
pydicom.dcmread(path_to_file).shape
returns(61, 748, 982, 3)
. This is the expected result.Running
LoadImage(image_only=True, reader="PydicomReader").shape
returnstorch.Size([748, 61, 982, 3])
. I see the same behavior without specifyingreader
.Expected behavior
The arrays should have the same dimensions.
Screenshots
N/A
Environment
Ensuring you use the relevant python executable, please paste the output of:
And since it's not printed out above, the pydicom version I'm using is 3.0.1.
Additional context
Add any other context about the problem here.
Beta Was this translation helpful? Give feedback.
All reactions