Class DicomTransferSyntax
- Namespace
- FellowOakDicom
- Assembly
- fo-dicom.core.dll
Representation of a DICOM transfer syntax.
public class DicomTransferSyntax : DicomParseable
- Inheritance
-
DicomTransferSyntax
- Inherited Members
- Extension Methods
Fields
DeflatedExplicitVRLittleEndian
Deflated Explicit VR Little Endian
public static readonly DicomTransferSyntax DeflatedExplicitVRLittleEndian
Field Value
ExplicitVRBigEndian
Explicit VR Big Endian
public static readonly DicomTransferSyntax ExplicitVRBigEndian
Field Value
ExplicitVRLittleEndian
Explicit VR Little Endian
public static readonly DicomTransferSyntax ExplicitVRLittleEndian
Field Value
FragmentableMPEG2
Fragmentable MPEG2 Main Profile @ Main Level
public static readonly DicomTransferSyntax FragmentableMPEG2
Field Value
FragmentableMPEG2MainProfileHighLevel
Fragmentable MPEG2 Main Profile / High Level
public static readonly DicomTransferSyntax FragmentableMPEG2MainProfileHighLevel
Field Value
FragmentableMPEG4AVCH264BDCompatibleHighProfileLevel41
Fragmentable MPEG-4 AVC/H.264 BD-compatible High Profile / Level 4.1
public static readonly DicomTransferSyntax FragmentableMPEG4AVCH264BDCompatibleHighProfileLevel41
Field Value
FragmentableMPEG4AVCH264HighProfileLevel41
Fragmentable MPEG-4 AVC/H.264 High Profile / Level 4.1
public static readonly DicomTransferSyntax FragmentableMPEG4AVCH264HighProfileLevel41
Field Value
FragmentableMPEG4AVCH264HighProfileLevel42For2DVideo
Fragmentable MPEG-4 AVC/H.264 High Profile / Level 4.2 For 2D Video
public static readonly DicomTransferSyntax FragmentableMPEG4AVCH264HighProfileLevel42For2DVideo
Field Value
FragmentableMPEG4AVCH264HighProfileLevel42For3DVideo
Fragmentable MPEG-4 AVC/H.264 High Profile / Level 4.2 For 3D Video
public static readonly DicomTransferSyntax FragmentableMPEG4AVCH264HighProfileLevel42For3DVideo
Field Value
FragmentableMPEG4AVCH264StereoHighProfileLevel42
Fragmentable MPEG-4 AVC/H.264 Stereo High Profile / Level 4.2
public static readonly DicomTransferSyntax FragmentableMPEG4AVCH264StereoHighProfileLevel42
Field Value
GEPrivateImplicitVRBigEndian
GE Private Implicit VR Big Endian
public static readonly DicomTransferSyntax GEPrivateImplicitVRBigEndian
Field Value
Remarks
Same as Implicit VR Little Endian except for big endian pixel data.
HEVCH265Main10ProfileLevel51
HEVC/H.265 Main 10 Profile / Level 5.1
public static readonly DicomTransferSyntax HEVCH265Main10ProfileLevel51
Field Value
HEVCH265MainProfileLevel51
HEVC/H.265 Main Profile / Level 5.1
public static readonly DicomTransferSyntax HEVCH265MainProfileLevel51
Field Value
HTJ2K
High-Throughput JPEG 2000 Image Compression
public static readonly DicomTransferSyntax HTJ2K
Field Value
HTJ2KLossless
High-Throughput JPEG 2000 Image Compression (Lossless Only)
public static readonly DicomTransferSyntax HTJ2KLossless
Field Value
HTJ2KLosslessRPCL
High-Throughput JPEG 2000 with RPCL Options Image Compression (Lossless Only)
public static readonly DicomTransferSyntax HTJ2KLosslessRPCL
Field Value
ImplicitVRBigEndian
Virtual transfer syntax for reading datasets improperly encoded in Big Endian format with implicit VR.
public static readonly DicomTransferSyntax ImplicitVRBigEndian
Field Value
ImplicitVRLittleEndian
Implicit VR Little Endian
public static readonly DicomTransferSyntax ImplicitVRLittleEndian
Field Value
JPEG2000Lossless
JPEG 2000 Lossless Image Compression
public static readonly DicomTransferSyntax JPEG2000Lossless
Field Value
JPEG2000Lossy
JPEG 2000 Lossy Image Compression
public static readonly DicomTransferSyntax JPEG2000Lossy
Field Value
JPEG2000Part2MultiComponent
JPEG 2000 Part 2 Multi-component Image Compression
public static readonly DicomTransferSyntax JPEG2000Part2MultiComponent
Field Value
JPEG2000Part2MultiComponentLosslessOnly
JPEG 2000 Part 2 Multi-component Image Compression (Lossless Only)
public static readonly DicomTransferSyntax JPEG2000Part2MultiComponentLosslessOnly
Field Value
JPEGLSLossless
JPEG-LS Lossless Image Compression
public static readonly DicomTransferSyntax JPEGLSLossless
Field Value
JPEGLSNearLossless
JPEG-LS Lossy (Near-Lossless) Image Compression
public static readonly DicomTransferSyntax JPEGLSNearLossless
Field Value
JPEGProcess1
JPEG Baseline (Process 1)
public static readonly DicomTransferSyntax JPEGProcess1
Field Value
JPEGProcess10_12Retired
JPEG Full Progression, Non-Hierarchical (Process 10 & 12) (Retired)
public static readonly DicomTransferSyntax JPEGProcess10_12Retired
Field Value
JPEGProcess11_13Retired
JPEG Full Progression, Non-Hierarchical (Process 11 & 13) (Retired)
public static readonly DicomTransferSyntax JPEGProcess11_13Retired
Field Value
JPEGProcess14
JPEG Lossless, Non-Hierarchical (Process 14)
public static readonly DicomTransferSyntax JPEGProcess14
Field Value
JPEGProcess14SV1
JPEG Lossless, Non-Hierarchical, First-Order Prediction (Process 14 [Selection Value 1])
public static readonly DicomTransferSyntax JPEGProcess14SV1
Field Value
JPEGProcess15Retired
JPEG Lossless, Non-Hierarchical (Process 15) (Retired)
public static readonly DicomTransferSyntax JPEGProcess15Retired
Field Value
JPEGProcess16_18Retired
JPEG Extended, Hierarchical (Process 16 & 18) (Retired)
public static readonly DicomTransferSyntax JPEGProcess16_18Retired
Field Value
JPEGProcess17_19Retired
JPEG Extended, Hierarchical (Process 17 & 19) (Retired)
public static readonly DicomTransferSyntax JPEGProcess17_19Retired
Field Value
JPEGProcess20_22Retired
JPEG Spectral Selection, Hierarchical (Process 20 & 22) (Retired)
public static readonly DicomTransferSyntax JPEGProcess20_22Retired
Field Value
JPEGProcess21_23Retired
JPEG Spectral Selection, Hierarchical (Process 21 & 23) (Retired)
public static readonly DicomTransferSyntax JPEGProcess21_23Retired
Field Value
JPEGProcess24_26Retired
JPEG Full Progression, Hierarchical (Process 24 & 26) (Retired)
public static readonly DicomTransferSyntax JPEGProcess24_26Retired
Field Value
JPEGProcess25_27Retired
JPEG Full Progression, Hierarchical (Process 25 & 27) (Retired)
public static readonly DicomTransferSyntax JPEGProcess25_27Retired
Field Value
JPEGProcess28Retired
JPEG Lossless, Hierarchical (Process 28) (Retired)
public static readonly DicomTransferSyntax JPEGProcess28Retired
Field Value
JPEGProcess29Retired
JPEG Lossless, Hierarchical (Process 29) (Retired)
public static readonly DicomTransferSyntax JPEGProcess29Retired
Field Value
JPEGProcess2_4
JPEG Extended (Process 2 & 4)
public static readonly DicomTransferSyntax JPEGProcess2_4
Field Value
JPEGProcess3_5Retired
JPEG Extended (Process 3 & 5) (Retired)
public static readonly DicomTransferSyntax JPEGProcess3_5Retired
Field Value
JPEGProcess6_8Retired
JPEG Spectral Selection, Non-Hierarchical (Process 6 & 8) (Retired)
public static readonly DicomTransferSyntax JPEGProcess6_8Retired
Field Value
JPEGProcess7_9Retired
JPEG Spectral Selection, Non-Hierarchical (Process 7 & 9) (Retired)
public static readonly DicomTransferSyntax JPEGProcess7_9Retired
Field Value
JPIPHTJ2KReferenced
JPIP HTJ2K Referenced
public static readonly DicomTransferSyntax JPIPHTJ2KReferenced
Field Value
JPIPHTJ2KReferencedDeflate
JPIP HTJ2K Referenced Deflate
public static readonly DicomTransferSyntax JPIPHTJ2KReferencedDeflate
Field Value
JPIPReferenced
JPIP Referenced
public static readonly DicomTransferSyntax JPIPReferenced
Field Value
JPIPReferencedDeflate
JPIP Referenced Deflate
public static readonly DicomTransferSyntax JPIPReferencedDeflate
Field Value
MPEG2
MPEG2 Main Profile @ Main Level
public static readonly DicomTransferSyntax MPEG2
Field Value
MPEG2MainProfileHighLevel
MPEG2 Main Profile / High Level
public static readonly DicomTransferSyntax MPEG2MainProfileHighLevel
Field Value
MPEG4AVCH264BDCompatibleHighProfileLevel41
MPEG-4 AVC/H.264 BD-compatible High Profile / Level 4.1
public static readonly DicomTransferSyntax MPEG4AVCH264BDCompatibleHighProfileLevel41
Field Value
MPEG4AVCH264HighProfileLevel41
MPEG-4 AVC/H.264 High Profile / Level 4.1
public static readonly DicomTransferSyntax MPEG4AVCH264HighProfileLevel41
Field Value
MPEG4AVCH264HighProfileLevel42For2DVideo
MPEG-4 AVC/H.264 High Profile / Level 4.2 For 2D Video
public static readonly DicomTransferSyntax MPEG4AVCH264HighProfileLevel42For2DVideo
Field Value
MPEG4AVCH264HighProfileLevel42For3DVideo
MPEG-4 AVC/H.264 High Profile / Level 4.2 For 3D Video
public static readonly DicomTransferSyntax MPEG4AVCH264HighProfileLevel42For3DVideo
Field Value
MPEG4AVCH264StereoHighProfileLevel42
MPEG-4 AVC/H.264 Stereo High Profile / Level 4.2
public static readonly DicomTransferSyntax MPEG4AVCH264StereoHighProfileLevel42
Field Value
Papyrus3ImplicitVRLittleEndianRetired
Papyrus 3 Implicit VR Little Endian (Retired)
public static readonly DicomTransferSyntax Papyrus3ImplicitVRLittleEndianRetired
Field Value
RFC2557MIMEEncapsulation
RFC 2557 MIME encapsulation
public static readonly DicomTransferSyntax RFC2557MIMEEncapsulation
Field Value
RLELossless
RLE Lossless
public static readonly DicomTransferSyntax RLELossless
Field Value
XMLEncoding
XML Encoding
public static readonly DicomTransferSyntax XMLEncoding
Field Value
Properties
Endian
Gets the endianness of the transfer syntax.
public Endian Endian { get; }
Property Value
IsDeflate
Gets whether or not the transfer syntax represents deflatable objects.
public bool IsDeflate { get; }
Property Value
IsEncapsulated
Gets whether or not the transfer syntax data representation is encapsulated.
public bool IsEncapsulated { get; }
Property Value
IsExplicitVR
Gets whether or not the Value Representation of the transfer syntax is explicit.
public bool IsExplicitVR { get; }
Property Value
IsLossy
Gets whether or not the transfer syntax data representation is lossy.
public bool IsLossy { get; }
Property Value
IsRetired
Gets whether or not the transfer syntax is declared retired.
public bool IsRetired { get; }
Property Value
KnownEntries
public static IEnumerable<DicomTransferSyntax> KnownEntries { get; }
Property Value
LossyCompressionMethod
Gets the lossy compression method identifier.
public string LossyCompressionMethod { get; }
Property Value
SwapPixelData
Gets whether or not the pixel data requires swapping.
public bool SwapPixelData { get; }
Property Value
UID
Gets the unique identifier of the transfer syntax.
public DicomUID UID { get; }
Property Value
Methods
Equals(object)
public override bool Equals(object obj)
Parameters
obj
object
Returns
GetHashCode()
public override int GetHashCode()
Returns
Lookup(DicomUID)
Get transfer syntax (pre-defined or built on-the-fly) for the specified uid
.
public static DicomTransferSyntax Lookup(DicomUID uid)
Parameters
uid
DicomUIDTransfer syntax UID.
Returns
- DicomTransferSyntax
Transfer syntax object, either pre-defined or built on-the-fly.
Remarks
If transfer syntax object is built on-the-fly, value representation is set to Explicit, encapsulation is set to
true
and endianness is set to Little Endian.
Exceptions
- DicomDataException
Thrown in the specified UID is not a transfer syntax type.
Parse(string)
Get the transfer syntax from the specified uid
string.
public static DicomTransferSyntax Parse(string uid)
Parameters
uid
stringString representing transfer syntax UID.
Returns
- DicomTransferSyntax
DicomTransferSyntax object corresponding to
uid
.
Remarks
Parse(string) is a wrapper around Lookup(DicomUID) for string based uid
.
Query(DicomUID)
Query DicomTransferSyntax by UID. returns null if not found.
public static DicomTransferSyntax Query(DicomUID uid)
Parameters
uid
DicomUID
Returns
Register(DicomUID)
register transfer syntax into internal dictionary, assuming Little Endian and Explicit VR.
public static DicomTransferSyntax Register(DicomUID uid)
Parameters
uid
DicomUID
Returns
Register(DicomUID, Endian, bool, bool)
register transfer syntax into internal dictionary.
public static DicomTransferSyntax Register(DicomUID uid, Endian endian, bool isExplicitVR = true, bool isEncapsulated = true)
Parameters
Returns
ToString()
public override string ToString()
Returns
Unregister(DicomTransferSyntax)
unregister transfer syntax from internal dictionary.
public static bool Unregister(DicomTransferSyntax ts)
Parameters
Returns
Unregister(DicomUID)
unregister transfer syntax from internal dictionary.
public static bool Unregister(DicomUID uid)
Parameters
uid
DicomUID
Returns
Operators
operator ==(DicomTransferSyntax, DicomTransferSyntax)
Equivalence operator for DicomTransferSyntax objects.
public static bool operator ==(DicomTransferSyntax a, DicomTransferSyntax b)
Parameters
a
DicomTransferSyntaxLeft-hand side DicomTransferSyntax to check for equivalence.
b
DicomTransferSyntaxRight-hand side DicomTransferSyntax to check for equivalence.
Returns
- bool
true if UID of DicomTransferSyntax objects are equivalent or if both objects are
, false otherwise.null
operator !=(DicomTransferSyntax, DicomTransferSyntax)
Non-equivalence operator for DicomTransferSyntax objects.
public static bool operator !=(DicomTransferSyntax a, DicomTransferSyntax b)
Parameters
a
DicomTransferSyntaxLeft-hand side DicomTransferSyntax to check for non-eequivalence.
b
DicomTransferSyntaxRight-hand side DicomTransferSyntax to check for non-equivalence.
Returns
- bool
true if UID of DicomTransferSyntax objects are non-equivalent or exactly one of the objects are
, false otherwise.null