-
-
Notifications
You must be signed in to change notification settings - Fork 138
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error: Encountered odd length #65
Comments
Thanks for raising this! I will need to check further into the DICOM spec to see when we have odd value lengths, and why/when we expect them to be even (in the code, there seems to be an explicit check to see if it's even). |
@suyashkumar Just wanted to make an intro here to Brian Hardell here, aka @IChocked at Github. Brian will intern with us this support, and one of his tasks is stress-testing our data ingest pipeline at Segmed. I've mentioned getting some data samples for all the recent reported issues is high on our list, so you might be seeing some DICOMs from us. |
I encountered this issue in some public data and wanted to share a few examples files. Data Citation: |
Thank you for the sample images! Very helpful. |
…ICOM (#79) This fixes #77 and appears to work on provided DICOMs. This is a relatively quick fix, that does seem to get the job done. There are some minor improvements that can be made in future PRs, but it will be best to get these changes in to unblock future work. This also appears to fix #82, and fix #65 (we are able to parse those images without errors). For most of the provided images, the issue was that an icon image sequence could appear in the DICOMs in addition to the primary PixelData. When reading that particular image sequence, a different set of metadata tags need to be used (instead of the global ones, which apply only to the core PixelData). There may be additional work to fully and correctly parsing icon image sets (most of the icons seem to be unpopulated in the sample images), but this change will at least prevent the parser from failing on DICOMs like this.
Another issue when scanning many DICOMs:
The text was updated successfully, but these errors were encountered: