This PR changes the behavior of Lut::get to discard any bits in the input which go beyond the LUT's allocated capacity (via bits_stored), thus making it no longer panic and seamlessly enabling pixeldata to convert 9-bit to 15-bit images filling in the highest bits of pixel data sample values.
add Lut field sample_mask
prevents excluded high bits from being considered in the translation
remove Lut field signed, which is no longer necessary because masking is always applied
This PR changes the behavior of
Lut::get
to discard any bits in the input which go beyond the LUT's allocated capacity (viabits_stored
), thus making it no longer panic and seamlessly enablingpixeldata
to convert 9-bit to 15-bit images filling in the highest bits of pixel data sample values.Lut
fieldsample_mask
Lut
fieldsigned
, which is no longer necessary because masking is always appliedLut::get
so that it no longer panicsLut
documentationResolves #346.