registerCodecs and chooseRepresentation set tags by itself?

All other questions regarding DCMTK

Moderator: Moderator Team

Post Reply
Message
Author
yusuke
Posts: 7
Joined: Fri, 2014-08-29, 08:21

registerCodecs and chooseRepresentation set tags by itself?

#1 Post by yusuke »

Does function DJEncoderRegistration::registerCodecs and DcmDataset::chooseRepresentation set appropriate values to following tags ?
Or need to set directly using DcmElement::putString?

Image Type (0008,0008)
Lossy Image Compression (0028,2110)
Lossy Image Compression Ratio (0028,2112)
Lossy Image Compression Method (0028,2114)

For example, DICOM PS3.3 said "If an image is a compressed version of another image, Lossy Image Compression (0028,2110) is set to "01", Value 1 of the Attribute Image Type (0008,0008) shall be set to DERIVED".
So if image was decompressed to JPEG Lossy image by store scu, Image Type Tag need to be set "DERIVED\SECONDARY".
And in this case, Lossy Image Compression (0028,2110) should be "01", Lossy Image Compression Method (0028,2114) should be "ISO_10918_1".

Two functions set these values automatically?

Best Regards,

Michael Onken
DCMTK Developer
Posts: 2048
Joined: Fri, 2004-11-05, 13:47
Location: Oldenburg, Germany
Contact:

Re: registerCodecs and chooseRepresentation set tags by itse

#2 Post by Michael Onken »

Hi,

Yes, the tags mentioned are modified automomatically if the compression/decompression is performed by a particular codec.

Best,
Michael

yusuke
Posts: 7
Joined: Fri, 2014-08-29, 08:21

Re: registerCodecs and chooseRepresentation set tags by itse

#3 Post by yusuke »

Dear Michael,

Thanks to you, I can use this smart function without setting those tags.
Thank you for your answer.

Best Regards,
Yusuke

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Bing [Bot], Google [Bot] and 1 guest