The alternate codec uses the legacy FracBits=13 Jasper library that is no longer used in DCF because it demonstrated some quality issues for certain types of hi-frequency images.
Codec options may be read from a configuration file at startup, or configured programmatically. It is also possible to independently configure input and output operations independently, on a per session basis using the DicomSessionSettings class.
This example demonstrates how codecs may be configured by creating a derived instance of a DicomTSCodecOptions for the codec in question, reconfiguring properties, and using SetCodecOptions(DicomTSCodecOptions, CodecIOMode) to set the options for the codec during the input or output operation.
In the following example, the DicomFileOutput class will pass its DicomSessionSettings to the DicomTSCodecFactory that constructs the output codec. Note that the same method may be used to customize Codec options for input codecs. Quality and processing options may also be configured in the DicomTSCodecOptions derived classes.
LaurelBridge.DCFExamples.CodecConfigurationProgram
Namespace: LaurelBridge.DCFExamples.CodecConfiguration
Assembly: CodecConfiguration (in CodecConfiguration.exe) Version: DCF34 r13043 DCF_3_4_56_20220408 NetFramework
public class Program
The Program type exposes the following members.
Name | Description | |
---|---|---|
Program | Initializes a new instance of the Program class |
Name | Description | |
---|---|---|
Main |
Main entry point for CodecConfiguration.
|