forked from DCMTK/dcmtk
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed issue with DcmCodec::updateImageType().
When compressing a DICOM image, e.g. with JPEG Baseline, the JPEG encoder calls DcmCodec::updateImageType(), which used to add the Image Type (0008,0008) Attribute with a possibly invalid value. For example, compressing a DICOM Secondary Capture image that does not contain the Image Type (0008,0008) Attribute resulted in an invalid value of "DERIVED" for the Image Type (0008,0008) Attribute. This value is invalid, because the VM is "2-n" according to DICOM PS3.6, i.e. at least two values should be present. This and other related issues have been fixed by completely rewriting the updateImageType() method. Also, the API documentation now clearly states which cases are handled in what way. And, the method reports details on what is done or what failed to the debug/error logger. This closes DCMTK Bug #1056.
- Loading branch information
1 parent
f7ca841
commit e265652
Showing
2 changed files
with
39 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters