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

Return an error if Pixel Representation is signed and a signed native is pixel data value is found. #296

Open
wants to merge 10 commits into
base: main
Choose a base branch
from

Conversation

suyashkumar
Copy link
Owner

@suyashkumar suyashkumar commented Nov 6, 2023

This is a quick fix for #294, by returning an error in the case that the dicom indicates signed pixel data and a negative pixel data value is detected.

If users are passing the SkipProcessingPixelDataValue or SkipPixelData option, this will bypass this error since this will only happen when trying to parse the raw Native PixelData.

It would be useful to add more tests for other bit widths, and some of the tests can be better structured (which can happen in follow ups), but I'd like to get this in sooner rather than later. We can follow up on getting signed integers fully supported directly.

@suyashkumar suyashkumar marked this pull request as ready for review November 6, 2023 04:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant