Skip to content

Encoding values with bits above the precision returns invalid results #104

@scaramallion

Description

@scaramallion

Related to pydicom/pydicom#2260, when encoding if the pixel value uses bits above precision then the value is clamped to the maximum allowed by precision rather than ignoring the higher bits.

For example:

precision = 4
original = 0b0001_1011
after = 0b0000_1111  # should be 0b0000_1011

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions