Class TransferSyntaxHelper
Inheritance
Inherited Members
Namespace:EvilDICOM.Core.Helpers
Assembly:EvilDICOM.dll
Syntax
public static class TransferSyntaxHelper
Fields
View SourceEXPLICIT_VR_BIG_ENDIAN
Unique ID that represents an explicit VR with big endian encoding
Declaration
public const string EXPLICIT_VR_BIG_ENDIAN = "1.2.840.10008.1.2.2"
Field Value
| Type | Description |
|---|---|
| System.String |
EXPLICIT_VR_LITTLE_ENDIAN
Unique ID that represents an explicit VR with little endian encoding
Declaration
public const string EXPLICIT_VR_LITTLE_ENDIAN = "1.2.840.10008.1.2.1"
Field Value
| Type | Description |
|---|---|
| System.String |
IMPLICIT_VR_LITTLE_ENDIAN
Unique ID that represents an implicit VR with little endian encoding
Declaration
public const string IMPLICIT_VR_LITTLE_ENDIAN = "1.2.840.10008.1.2"
Field Value
| Type | Description |
|---|---|
| System.String |
JPEG_2000
Unique ID that represents JPEG 2000 image encoding
Declaration
public const string JPEG_2000 = "1.2.840.10008.1.2.4.91"
Field Value
| Type | Description |
|---|---|
| System.String |
JPEG_2000_LOSSLESS
Unique ID that represents JPEG 2000 lossless image encoding
Declaration
public const string JPEG_2000_LOSSLESS = "1.2.840.10008.1.2.4.90"
Field Value
| Type | Description |
|---|---|
| System.String |
JPEG_BASELINE
Unique ID that represents JPEG baseline image encoding
Declaration
public const string JPEG_BASELINE = "1.2.840.10008.1.2.4.50"
Field Value
| Type | Description |
|---|---|
| System.String |
JPEG_EXTENDED
Unique ID that represents JPEG Extended image encoding
Declaration
public const string JPEG_EXTENDED = "1.2.840.10008.1.2.4.51"
Field Value
| Type | Description |
|---|---|
| System.String |
JPEG_LOSSLESS_14
Unique ID that represents JPEG lossless (Process 14) image encoding
Declaration
public const string JPEG_LOSSLESS_14 = "1.2.840.10008.1.2.4.57"
Field Value
| Type | Description |
|---|---|
| System.String |
JPEG_LOSSLESS_14_S1
Unique ID that represents JPEG lossless (Process 14 Selection Value 1) image encoding
Declaration
public const string JPEG_LOSSLESS_14_S1 = "1.2.840.10008.1.2.4.70"
Field Value
| Type | Description |
|---|---|
| System.String |
JPEG_LOSSLESS_15
Unique ID that represents JPEG lossless (Process 15) image encoding
Declaration
public const string JPEG_LOSSLESS_15 = "1.2.840.10008.1.2.4.58"
Field Value
| Type | Description |
|---|---|
| System.String |
JPEG_LS_LOSSLESS
Unique ID that represents JPEG-LS lossless image encoding
Declaration
public const string JPEG_LS_LOSSLESS = "1.2.840.10008.1.2.4.80"
Field Value
| Type | Description |
|---|---|
| System.String |
JPEG_LS_NEAR_LOSSLESS
Unique ID that represents JPEG-LS near lossless image encoding
Declaration
public const string JPEG_LS_NEAR_LOSSLESS = "1.2.840.10008.1.2.4.81"
Field Value
| Type | Description |
|---|---|
| System.String |
JPEG_PROGRESSIVE
Unique ID that represents JPEG Progressive image encoding
Declaration
public const string JPEG_PROGRESSIVE = "1.2.840.10008.1.2.4.55"
Field Value
| Type | Description |
|---|---|
| System.String |
RLE_LOSSLESS
Unique ID that represents RLE lossless image encoding
Declaration
public const string RLE_LOSSLESS = "1.2.840.10008.1.2.5"
Field Value
| Type | Description |
|---|---|
| System.String |
Methods
View SourceGetSyntax(IDICOMElement)
Converts the string in the Transfer syntax element to the transfer syntax enum for reading the file
Declaration
public static TransferSyntax GetSyntax(IDICOMElement el)
Parameters
| Type | Name | Description |
|---|---|---|
| IDICOMElement | el | the transfer syntax element |
Returns
| Type | Description |
|---|---|
| TransferSyntax | the transfer syntax in enum format |
GetSyntax(String)
Converts the string to the transfer syntax enum for reading the file
Declaration
public static TransferSyntax GetSyntax(string syntaxUID)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | syntaxUID |
Returns
| Type | Description |
|---|---|
| TransferSyntax | the transfer syntax in enum format |
IsCompressedImage(String)
Indicates if the pixel data is in compressed form
Declaration
public static bool IsCompressedImage(string syntaxUIDString)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | syntaxUIDString |
Returns
| Type | Description |
|---|---|
| System.Boolean | boolean indicating if image is compressed |
SetSyntax(DICOMObject, TransferSyntax)
Sets the transfer syntax of the DICOM object. The purpose of this is to go from an enum to a string.
Declaration
public static void SetSyntax(DICOMObject dicom, TransferSyntax selector)
Parameters
| Type | Name | Description |
|---|---|---|
| DICOMObject | dicom | the DICOM object to set syntax |
| TransferSyntax | selector | the transfer syntax to set |