Project

General

Profile

Actions

Bug #924

closed

Lossless JPEG encoding adds Derivation Code Sequence to image

Added by Marco Eichelberg over 5 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
High
Category:
Library
Target version:
-
Start date:
2020-02-24
Due date:
% Done:

100%

Estimated time:
1:00 h
Module:
dcmjpeg
Operating System:
Compiler:

Description

It seems that the lossless JPEG encoder sets the first value of the ImageType attribute to DERIVED and adds a DerivationCodeSequence with the following content:

(0008,0100) SH [121327]                                 #   6, 1 CodeValue
(0008,0102) SH [DCM]                                    #   4, 1 CodingSchemeDesignator
(0008,0104) LO [Full fidelity image]                    #  20, 1 CodeMeaning

This behaviour should be changed. Lossless compression should not affect ImageType and thus does not require the addition of a DerivationCodeSequence item.

Other codecs in DCMTK (RLE, JPEG-LS, JPEG 2000) are not affected by this issue.

See DCMTK forum: https://forum.dcmtk.org/viewtopic.php?f=1&t=4944

Actions

Also available in: Atom PDF