New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Too much compressed data #16
Comments
The dataset are available as DICOM files using either: or The first version is the original form, the second one is a simplified one where I removed manually the COM marker (some implementation could not process the COM marker). But the image bitstream is bitwise identical. Using eg.:
I've simplified the second dataset in place, here are the new md5sum:
|
The good news is that I can reproduce it with release 1.0, 1.1 and git master. One should pay attention that Also on the good side, the output produced by 1.1 and git/master are identical:
|
Hi, This JPEG-LS image has been compressed with DicomObjects: 6.35.0.67. This can be seen as the JPEG-LS stream has a JPEG comment marker segment (xFFFE) with the text: "Compressed by DicomObjects: 6.35.0.67". CharLS detects that when all pixels are decoded, there are still 2 bits not decoded and will report this as a failure. This problem can be caused by a failure in the encoding process (DicomObjects library) or the decoding process (CharLS). Do you have access to the original uncompressed image? Note: the original loco binaries cannot handle JPEG comment markers, so I am currently not able to use another tool to decode the image. |
@vbaderks If you check my earliest post you'll find a link to a stripped down version: It does not contains a COM marker, so it may be simplier for you. |
This appear to be a bug in the JPEG-LS stream itself. CharLS does properly report the error as 'TooMuchCompressedData', so there is not much one can do. This is up to the application decoding the stream to decide whether or not to accept an error of type 'TooMuchCompressedData'. For reference the corrected stream is at: |
I can reproduce a failure to decompress using CharLS 1.1 (issue is present in CharLS 1.0), this is originally a bug tracked in Debian. With the reference jls, I can get
JpegLsDecodeStream
to returnTooMuchCompressedData
:The text was updated successfully, but these errors were encountered: