You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'd like to be able to perform JPEG2K encoding of medical images using Pillow, particularly 16-bit signed greyscale (commonly used with CT and MR). Because of the limited supported modes in Jpeg2KEncode.c this is not currently possible as all input data is treated as unsigned.
Would it be acceptable if I provided a PR exposing the sgnd compression parameter to end users when saving? I ask because it feels more like a workaround than a true solution. Ideally I'd add support for I mode but OpenJPEG only supports a maximum of 31 bit samples.
The text was updated successfully, but these errors were encountered:
I'd like to be able to perform JPEG2K encoding of medical images using Pillow, particularly 16-bit signed greyscale (commonly used with CT and MR). Because of the limited supported
modes
inJpeg2KEncode.c
this is not currently possible as all input data is treated as unsigned.Would it be acceptable if I provided a PR exposing the
sgnd
compression parameter to end users when saving? I ask because it feels more like a workaround than a true solution. Ideally I'd add support forI
mode but OpenJPEG only supports a maximum of 31 bit samples.The text was updated successfully, but these errors were encountered: