Efferent-Health / fo-dicom.Codecs

Cross-platform Dicom native codecs for fo-dicom
Other
65 stars 23 forks source link

Use transcoder to decode JPEG Lossless DICOM will change the pixel value #75

Closed Charlie022802 closed 2 months ago

Charlie022802 commented 3 months ago

I'm using fo-dicom 5.1.3 with fo-dicom.Codecs 5.13.4. The original image's transfer syntax is 1.2.840.10008.1.2.4.70 (JPEG Lossless, Nonhierarchical, First-Order Prediction) as shown below: 螢幕擷取畫面 2024-07-01 122616

After decoding to 1.2.840.10008.1.2.1 (Explicit VR Little Endian), the pixel values change, causing the window level to not match, as shown below: 螢幕擷取畫面 2024-07-01 122640

The DICOM file can be accessed from here: https://drive.google.com/file/d/14ngl9HTJf9YrNpdaTSSd3LNDt4QYI2Dt/view?usp=sharing

Why do the pixel values change?

jaime-olivares commented 2 months ago

We are still analyzing the issue. It seems the image has been downgraded to 8 bits for an unknown reason. So the window level that will show the image should be very low.

cbeltran1306 commented 2 months ago

Hi @Charlie022802, this problem has been solved, please use the latest nuget version v5.14.2 https://www.nuget.org/packages/fo-dicom.Codecs/5.14.2.