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
Describe the bug
User warning:
../lib/python3.8/site-packages/pydicom/pixel_data_handlers/pillow_handler.py:238: UserWarning: The (0028,0101) 'Bits Stored' value (16-bit) doesn't match the JPEG 2000 data (14-bit). It's recommended that you change the 'Bits Stored' value
If you're happy to ignore the warnings then it's fine. Basically the J2K data uses 14-bit precision, but the dataset has 16-bit. I've since reconsidered the need for them since it's (mostly) irrelevant for the end user so they'll be gone in v3.0.
Describe the bug
User warning:
../lib/python3.8/site-packages/pydicom/pixel_data_handlers/pillow_handler.py:238: UserWarning: The (0028,0101) 'Bits Stored' value (16-bit) doesn't match the JPEG 2000 data (14-bit). It's recommended that you change the 'Bits Stored' value
This is probably related to:
pydicom/pylibjpeg#51
#693
Setting my imports as:
import pydicom.pixel_data_handlers.gdcm_handler as gdcm_handler
pydicom.config.image_handlers = [None, gdcm_handler]
Still did not work as the warnings still showed up.
Is there a fix for this? Or should i just ignore the warnings?
Your environment
pydicom==2.4.3
gdcm==1.1
pylibjpeg==2.0.0
pylibjpeg-libjpeg==2.0.2
pylibjpeg-openjpeg==2.1.1
Pillow==10.2.0
The text was updated successfully, but these errors were encountered: