Skip to content
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

Bug/460 #462

Merged
merged 1 commit into from
Mar 10, 2024
Merged

Bug/460 #462

merged 1 commit into from
Mar 10, 2024

Conversation

thomas-tribus
Copy link

@thomas-tribus thomas-tribus commented Mar 6, 2024

When encountering PixelRepresentation set a flag so we get the correct VR for PixelPadding

@Enet4 Enet4 linked an issue Mar 6, 2024 that may be closed by this pull request
@Enet4 Enet4 added bug This is a bug A-lib Area: library C-parser Crate: dicom-parser labels Mar 6, 2024
Copy link
Owner

@Enet4 Enet4 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you very much for this! Please see the comments inline.

parser/src/stateful/decode.rs Outdated Show resolved Hide resolved
parser/src/stateful/decode.rs Outdated Show resolved Hide resolved
@thomas-tribus thomas-tribus force-pushed the bug/460 branch 2 times, most recently from 76314b9 to ff5a8de Compare March 6, 2024 18:57
When encountering PixelRepresentation set a flag so we get the correct VR for PixelPadding and other affected elements.
Copy link
Owner

@Enet4 Enet4 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! I will begin some work on the core and dictionary-std crate to encompass extra information about the data element so that we can use it here. But in the meantime, this works better than before. Thank you @thomas-tribus!

@Enet4 Enet4 merged commit dbd41ed into Enet4:master Mar 10, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-lib Area: library bug This is a bug C-parser Crate: dicom-parser
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Wrong VR assumed when reading pixel padding in Implicit VR dataset
2 participants