LaurelBridge.DCFExamples.DicomStreamIOProgram
Namespace: LaurelBridge.DCFExamples.DicomStreamIO
Assembly: DicomStreamIO (in DicomStreamIO.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 DicomStreamIO.
|
Chapter 10 was originally designed as a format for DICOM files, but it is also used to perform non-DICOM transfers via web sockets, or may be wrapped by other protocols that use standard streams. Chapter 10 format contains the Group 2 File Meta Information tags that convey the SOP Class and Instance Uids, the Transfer Syntax of the encoded dataset, as well as other information.
In normal DICOM networking, the Group 2 tags are normally stripped, as they are not supposed to be a part of the messaging payload between DICOM entities. This example uses DicomFileInput and DicomFileOutput in combination with the DicomStreamReader and the DicomStreamWriter classes to demonstrate alternative ways to reading and writing Chapter 10 formatted data to io streams.
As of DCF 3.4.16, we also remove Group Lengths when writing to an DicomOutput as suggested by the DICOM standard. This example demonstrates how to disable this feature so that there are no differences between the input and output datasets. Note that DCF does not presently support writing correct group lengths except for Group 0 (Command) and Group 2 (FileMeta) groups which are handled automatically.