LAUREL BRIDGE

ProgramMain Method

DICOM Connectivity Framework V3.4
The main entry point for ImageViewer. The program takes an optional override configuration file and an optional filename to open. The override file may also be specified by creating a configuration file in the same directory as the executable with a file type of ".dcfcfg". Note that ImageViewer uses the OpenJpeg codecs for the J2k lossless (.90) and lossy (.91) transfer syntax codecs.

Namespace:  LaurelBridge.DCF.Examples.ImageViewer
Assembly:  ImageViewer (in ImageViewer.exe) Version: DCF34 r11232 DCF_3_4_20
Syntax

C#
public static void Main(
	string[] args
)

Parameters

args
Type: SystemString
Optional command line arguments. A -cfg=path_to_cfg may be specified as the first parameter, followed by an optional path to open.
Remarks

To override the use of the OpenJpeg codecs, and use the default Jasper codecs create an override file that contains:

# use JasperCodecOptions, OpjCodecOptions or AwareJ2kCodecOptions for 90
[ DCF.Dicom/default_session_cfg/CodecOptions/1.2.840.10008.1.2.4.90/Decode ]
_TYPE_ = LaurelBridge.DCF.Codecs.JasperCodecOptions
[ DCF.Dicom/default_session_cfg/CodecOptions/1.2.840.10008.1.2.4.90/Encode ]
_TYPE_ = LaurelBridge.DCF.Codecs.JasperCodecOptions

# use JasperCodecOptions, OpjCodecOptions, JasperIppCodecOptions, OpjCodecOptions, or AwareJ2kCodecOptions for 91
[ DCF.Dicom/default_session_cfg/CodecOptions/1.2.840.10008.1.2.4.91/Decode ]
_TYPE_ = LaurelBridge.DCF.Codecs.JasperCodecOptions
[ DCF.Dicom/default_session_cfg/CodecOptions/1.2.840.10008.1.2.4.91/Encode ]
_TYPE_ = LaurelBridge.DCF.Codecs.JasperCodecOptions

If you name the config ImageViewer.dcfcfg, and put it next to the ImageViewer, it will be read automatically. To specify a different configuration on the command line:

ImageViewer -cfg=Jasper12.dcfcfg path_to_filename.dcm

See Also

Reference