-
-
Notifications
You must be signed in to change notification settings - Fork 670
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
encoding bug in OpenJPEG third party module #4517
Comments
GDCM uses own OpenJPEG library (or "system" optionally), it is
|
Is this an issue that need to be reported and addressed in the GDCM repo? |
Yes, but also there may be other issues with BitsAllocated 32 sometimes and the line Edit: also see this line in GDCM. |
Just posted the issue on the GDCM bug-tracker (https://sourceforge.net/p/gdcm/bugs/559/). @malaterre, really appreciate your help resolving this. We have some naive SimpleITK users who encountered the problem, using a system OpenJPEG is not an option for them - it is beyond what they can do. Thanks. |
@zivy I was not involved in the original Modules/ThirdParty/OpenJPEG, please update and you should be done. Last I checked this is the j2k module used by ITK/GDCM. |
Hello @malaterre, Sorry, but I'm a bit confused. Per @issakomi's observation, the OpenJPEG library used by GDCM appears to be from |
The version of OpenJPEG in ITK which is used for JPEG2000 compression (default codec when writing DICOM via GDCM) has a bug encoding int32, it silently fails writing (incorrect write). When attempting to read the result the reader will throw an exception reporting the issue (correct behavior). This appears to be resolved in newer versions of OpenJPEG, so likely updating the module to a newer version will resolve the issue.
Note that the bug was still in OpenJPEG circa 2020 (see this discussion).
Python code illustrating the issue:
The text was updated successfully, but these errors were encountered: