Professional Documents
Culture Documents
ClearCanvas ImageServer Team User's Guide Reglas de Compresion
ClearCanvas ImageServer Team User's Guide Reglas de Compresion
<!--
This rule instructs the server to use JPEG baseline compression
on 8-bit US and RF studies.
-->
<rule>
<condition expressionLanguage="dicom">
<and>
<equal test="$BitsAllocated" refValue="8" />
<or>
<equal test="$Modality" refValue="US" />
<equal test="$Modality" refValue="RF" />
</or>
</and>
</condition>
<action>
<jpeg-baseline quality="80" time="10" unit="weeks" />
</action>
</rule>
<rule>
<condition
expressionLanguage="dicom">
<or>
<equal test="$Modality" refValue="CT" />
<equal test="$Modality" refValue="MR" />
</or>
</condition>
<action>
<jpeg-extended quality="75" time="10" unit="weeks" />
</action>
</rule>
https://documentation.clearcanvas.ca/Documentation/UsersGuide/ImageServer/3_5/Team/index.html?sample_compression_rules.htm 1/2
9/1/23, 8:52 ClearCanvas ImageServer Team User's Guide
<!-- RLE -->
<not-equal test="$TransferSyntaxUid" refValue="1.2.840.10008.1.2.5"/>
<!-- JPEG Baseline -->
<not-equal test="$TransferSyntaxUid" refValue="1.2.840.10008.1.2.4.50"/>
<!-- JPEG Extended -->
<not-equal test="$TransferSyntaxUid" refValue="1.2.840.10008.1.2.4.51"/>
<!-- JPEG Lossless -->
<not-equal test="$TransferSyntaxUid" refValue="1.2.840.10008.1.2.4.70"/>
<!-- JPEG 2000 Lossless -->
<not-equal test="$TransferSyntaxUid" refValue="1.2.840.10008.1.2.4.90"/>
<!-- JPEG 2000 Lossless/Lossy -->
<not-equal test="$TransferSyntaxUid" refValue="1.2.840.10008.1.2.4.91"/>
<equal test="$BitsAllocated" refValue="8"/>
<not-equal test="$PhotometricInterpretation" refValue="PALETTE COLOR"/>
<or>
<equal test="$Modality" refValue="US"/>
<equal test="$Modality" refValue="RF"/>
</or>
</and>
</condition>
<action>
<rle-sop/>
</action>
</rule>
<!-- This rule instructs the server to use JPEG 2000 lossless compression on CT, MR, CR and MG studies.
2 threads will be used by the compressor. Finally, the Photometric Interpretations not supported by
the Kakadu codec are disabled in the rule.-->
<rule>
<condition expressionLanguage="dicom">
<and>
<!-- Unsupported Photometric Interpretations for the Kakadu Codec -->
<not-equal test="$PhotometricInterpretation" refValue="YBR_FULL" />
<not-equal test="$PhotometricInterpretation" refValue="YBR_FULL_422" />
<not-equal test="$PhotometricInterpretation" refValue="YBR_PARTIAL_422" />
<not-equal test="$PhotometricInterpretation" refValue="YBR_PARTIAL_420" />
<or>
<equal test="$Modality" refValue="CT" />
<equal test="$Modality" refValue="MR" />
<equal test="$Modality" refValue="CR" />
<equal test="$Modality" refValue="MG" />
</or>
</and>
</condition>
<action>
<kakadu-j2k-lossless time="10" unit="weeks" threads="2" convertFromPalette="true"/>
</action>
</rule>
https://documentation.clearcanvas.ca/Documentation/UsersGuide/ImageServer/3_5/Team/index.html?sample_compression_rules.htm 2/2