Class DicomTranscoder
Generic DICOM transcoder.
Implements
Inherited Members
Namespace: Dicom.Imaging.Codec
Assembly: cs.temp.dll.dll
Syntax
public class DicomTranscoder : IDicomTranscoder
Constructors
DicomTranscoder(DicomTransferSyntax, DicomTransferSyntax, DicomCodecParams, DicomCodecParams)
Initializes an instance of DicomTranscoder.
Declaration
public DicomTranscoder(DicomTransferSyntax inputSyntax, DicomTransferSyntax outputSyntax, DicomCodecParams inputCodecParams = null, DicomCodecParams outputCodecParams = null)
Parameters
Type | Name | Description |
---|---|---|
DicomTransferSyntax | inputSyntax | Input transfer syntax. |
DicomTransferSyntax | outputSyntax | Output transfer syntax. |
DicomCodecParams | inputCodecParams | Input codec parameters. |
DicomCodecParams | outputCodecParams | Output codec parameters. |
Properties
InputCodecParams
Gets the parameters associated with the input codec.
Declaration
public DicomCodecParams InputCodecParams { get; }
Property Value
Type | Description |
---|---|
DicomCodecParams |
InputSyntax
Gets the transfer syntax of the input codec.
Declaration
public DicomTransferSyntax InputSyntax { get; }
Property Value
Type | Description |
---|---|
DicomTransferSyntax |
OutputCodecParams
Gets the parameters associated with the output codec.
Declaration
public DicomCodecParams OutputCodecParams { get; }
Property Value
Type | Description |
---|---|
DicomCodecParams |
OutputSyntax
Gets the transfer syntax of the output codec.
Declaration
public DicomTransferSyntax OutputSyntax { get; }
Property Value
Type | Description |
---|---|
DicomTransferSyntax |
Methods
DecodeFrame(DicomDataset, Int32)
Decompress single frame from DICOM dataset and return uncompressed frame buffer.
Declaration
public IByteBuffer DecodeFrame(DicomDataset dataset, int frame)
Parameters
Type | Name | Description |
---|---|---|
DicomDataset | dataset | DICOM dataset. |
Int32 | frame | Frame number. |
Returns
Type | Description |
---|---|
IByteBuffer | Uncompressed frame buffer. |
DecodePixelData(DicomDataset, Int32)
Decompress pixel data from DICOM dataset and return uncompressed pixel data.
Declaration
public IPixelData DecodePixelData(DicomDataset dataset, int frame)
Parameters
Type | Name | Description |
---|---|---|
DicomDataset | dataset | DICOM dataset. |
Int32 | frame | Frame number. |
Returns
Type | Description |
---|---|
IPixelData | Uncompressed pixel data. |
ExtractOverlays(DicomDataset)
Declaration
public static DicomDataset ExtractOverlays(DicomDataset dataset)
Parameters
Type | Name | Description |
---|---|---|
DicomDataset | dataset |
Returns
Type | Description |
---|---|
DicomDataset |
Transcode(DicomDataset)
Transcode a DicomDataset from InputSyntax to OutputSyntax.
Declaration
public DicomDataset Transcode(DicomDataset dataset)
Parameters
Type | Name | Description |
---|---|---|
DicomDataset | dataset | DICOM dataset. |
Returns
Type | Description |
---|---|
DicomDataset | New, transcoded, DICOM dataset. |
Transcode(DicomFile)
Transcode a DicomFile from InputSyntax to OutputSyntax.
Declaration
public DicomFile Transcode(DicomFile file)
Parameters
Type | Name | Description |
---|---|---|
DicomFile | file | DICOM file. |
Returns
Type | Description |
---|---|
DicomFile | New, transcoded, DICOM file. |