Compression of received images - dcm4che/dcm4chee-arc-light GitHub Wiki
- Go to
Menu->Configuration
, then onDevices
page,Edit
thedcm4chee-arc
device. Go toExtensions
and
Edit extension
ofDevice Extension
. Again go to itsExtensions
andEdit extension
ofArchive Device
. - Next go to the archive device extension's
Child Objects
and use+
to add anCompression rule
. Enter values in fieldsName
andDICOM Transfer Syntax UID
and any other optional fields andSave
.
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
dn: cn=JPEG 2000 Lossless,dicomDeviceName=dcm4chee-arc,cn=Devices,cn=DICOM Configuration,dc=dcm4che,dc=org
objectClass: dcmArchiveCompressionRule
cn: JPEG 2000 Lossless
dicomTransferSyntax: 1.2.840.10008.1.2.4.90
dcmImageWriteParam: maxPixelValueError=0.0
dcmProperty: SendingApplicationEntityTitle=JPEG_2000
- 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.
Go to the Control tab on Configuration page in archive UI and reload the configuration.