Skip to content

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

Open
suyashkumar wants to merge 10 commits intomainfrom
s/signed
Open

Return an error if Pixel Representation is signed and a signed native is pixel data value is found.#296
suyashkumar wants to merge 10 commits intomainfrom
s/signed

Conversation

@suyashkumar
Copy link
Copy Markdown
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