-
-
Notifications
You must be signed in to change notification settings - Fork 686
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
Add experimental HTJ2K TransferSyntax for reading to GDCM #5020
Add experimental HTJ2K TransferSyntax for reading to GDCM #5020
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some of this should eventually go into GDCM upstream?
Yes this should definitely go upstream. This effort was less than expected to get something functional, but there are likely details in the DICOM specs that I am not aware of that may may it more complicated for complete decoding support. |
Great!! |
TSField == MPEG4AVCH264BDcompatibleHighProfileLevel4_1 | ||
TSField == MPEG4AVCH264BDcompatibleHighProfileLevel4_1 || | ||
TSField == HTJ2KLossless || | ||
TSField == HTJ2KRPCLLossless |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
E.g. IsLossless() will return false
for HTJ2KLossless, isn't it? Something is wrong here.
P.S. Just FYI, I don't plan to step into this stuff (I don't use GDCM / GDCMIO for my app), sorry.
AFAIK, upstream GDCM has internal OpenJPEG version 2.3, decoding of HTJ2K requires 2.5. Just FYI. |
1a79eb4
to
5568f41
Compare
Draft of GDCM changes submitted upstream: malaterre/GDCM#187 |
ITK's thirdparty library is used.
This update include the experimental HTJ2K codec, and completes removal openjpeg source code.
Code extracted from: https://github.com/malaterre/GDCM.git at commit 41c9bd758000da78b02a71569fb7dfd2d8a86007 (v3.0.25).
# By GDCM Upstream * upstream-GDCM: GDCM 2025-02-07 (41c9bd75)
Clarify documentation for support compression types for writing.
Added test images from: https://www.aliza-dicom-viewer.com/download/datasets These may be a little large.
@bradking This PR updates a third party library and removes a directory from the third party library. To do this I first removed the directory in ITK in a commit, updated the UpdateFromUpstream.sh script to remove then directory, them proceed as normal. Is this the correct process? |
@blowekamp yes, and the history structure LGTM. Good work. Note that removing the directory from ITK first may not have been necessary, as the new import commit records removals that would be merged too. It won't hurt anything though. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mostly looks good.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Should this be merged, Brad? |
Sure. |
Relates to #3983
The experimental support for HTJ2K has been merged upstream into GDCM. Update ITK to the latest GDCM release tag include this feature.
Adding it to ITK will allow the ITK community to better test the new feature.
PR Checklist
Refer to the ITK Software Guide for
further development details if necessary.