How to configure compression of received images

vrindanayak edited this page Oct 11, 2016 · 5 revisions
Clone this wiki locally

Configuration

One can configure Lossy and Lossless compression types as shown below.

       dn: cn=JPEG 12-bit Lossy,dicomDeviceName=dcm4chee-arc,cn=Devices,cn=DICOM Configuration,dc=dcm4che,dc=org
       objectClass: dcmArchiveCompressionRule
       cn: JPEG 12-bit Lossy
       dicomTransferSyntax: 1.2.840.10008.1.2.4.51
       dcmImageWriteParam: compressionQuality=0.8
       dcmImageWriteParam: maxPixelValueError=20.0
       dcmImageWriteParam: avgPixelValueBlockSize=8.0
       dcmProperty: BitsStored=9|10|11|12
       dcmProperty: PhotometricInterpretation=MONOCHROME1|MONOCHROME2
       dcmProperty: PixelRepresentation=0
       dcmProperty: SendingApplicationEntityTitle=JPEG_LOSSY

       dn: cn=JPEG LS Lossless,dicomDeviceName=dcm4chee-arc,cn=Devices,cn=DICOM Configuration,dc=dcm4che,dc=org
       objectClass: dcmArchiveCompressionRule
       cn: JPEG LS Lossless
       dicomTransferSyntax: 1.2.840.10008.1.2.4.80
       dcmImageWriteParam: maxPixelValueError=0.0
       dcmProperty: SendingApplicationEntityTitle=JPEG_LS

       dn: cn=JPEG 8-bit Lossy,dicomDeviceName=dcm4chee-arc,cn=Devices,cn=DICOM Configuration,dc=dcm4che,dc=org
       objectClass: dcmArchiveCompressionRule
       cn: JPEG 8-bit Lossy
       dicomTransferSyntax: 1.2.840.10008.1.2.4.50
       dcmImageWriteParam: compressionQuality=0.8
       dcmImageWriteParam: maxPixelValueError=10.0
       dcmImageWriteParam: avgPixelValueBlockSize=8.0
       dcmProperty: BitsStored=8
       dcmProperty: PhotometricInterpretation=MONOCHROME1|MONOCHROME2|RGB
       dcmProperty: PixelRepresentation=0
       dcmProperty: SendingApplicationEntityTitle=JPEG_LOSSY

       dn: cn=JPEG Lossless,dicomDeviceName=dcm4chee-arc,cn=Devices,cn=DICOM Configuration,dc=dcm4che,dc=org
       objectClass: dcmArchiveCompressionRule
       cn: JPEG Lossless
       dicomTransferSyntax: 1.2.840.10008.1.2.4.70
       dcmImageWriteParam: maxPixelValueError=0.0
       dcmProperty: SendingApplicationEntityTitle=JPEG_LOSSLESS
  • The AE Title of modality sending the images to archive can be configured against SendingApplicationEntityTitle.
  • The properties of an image can be defined against dcmProperty.
  • The archive compression rule gets applied, if the images that are sent by the modality, comply with the JPEG codec / transfer syntaxes.
  • For Lossy types, if one defines maxPixelValueError then one must also define avgPixelValueBlockSize.
  • For Lossless types, one must set the maxPixelValueError value to 0.0

One may refer to Archive Compression Rule to understand the description of the attributes.