-
-
Notifications
You must be signed in to change notification settings - Fork 150
Open
Description
I was playing around with the pydicom test files and noticed that parsing (with SkipProcessingPixelDataValue() option enabled) the following files result in errors:
- 1. ExplVR_BigEndNoMeta.dcm (addressed in Parse: If transfer syntax is missing, attempt to infer it by peeking next 100 bytes. #330)
- 2. ExplVR_LitEndNoMeta.dcm (addressed in Parse: If transfer syntax is missing, attempt to infer it by peeking next 100 bytes. #330)
- 3. MR_truncated.dcm
- 4. UN_sequence.dcm
- 5. meta_missing_tsyntax.dcm
- 6. nested_priv_SQ.dcm (addressed in Read elements with VR=UN and undefined VL as SQ #331)
- 7. no_meta.dcm
- 8. no_meta_group_length.dcm (addressable by a ParseOption already)
These files were parseable by dcm4che.
For most of them, the issue is related to missing some or all meta tags.
Ideally, if the meta tags aren't included, we should ignore and try parsing the first data element. And we can guess the transfer syntax by peeking the first tag and VR of the first element. We try [implicit LE, explicit BE, explicit LE], whichever one decodes a known tag and VR is likely the correct transfer syntax and we should use that for the rest of the dataset.
suyashkumar
Metadata
Metadata
Assignees
Labels
No labels