Closed teknasd closed 8 months ago
JPEG 2000 Lossless typically achieves compression ratios of 10:1 to 20:1
I don't think that applies to mathematical lossless, maybe visual . The ~2.3 compression ratio looks reasonable.
These are 14-bit data, not 16-bit, so use jpeg2k_encode(dicom.pixel_array, level=0, bitspersample=14)
The transfer syntax would need to be JPEG2000Lossless
, no?
JPEG 2000 Lossless typically achieves compression ratios of 10:1 to 20:1. Lossy compression allows higher compression ratios i.e. 50:1 up to 100:1
I tested the imagecodecs lib to compress the image data inside dicom file used for medical imaging. I am getting compression ratio or 2.5:1 only.
Code to encode file
Code for comparison -