pydicom.config.APPLY_J2K_CORRECTIONS

pydicom.config.APPLY_J2K_CORRECTIONS = True

Use the information within JPEG 2000 data to correct the returned pixel data

New in version 2.1.

If True (default), then for handlers that support JPEG 2000 pixel data, use the component precision and sign to correct the returned ndarray when using the pixel data handlers. If False then only rely on the element values within the dataset when applying corrections.