Table of Contents

Class DicomTranscoder

Namespace
FellowOakDicom.Imaging.Codec
Assembly
fo-dicom.core.dll

Generic DICOM transcoder.

public class DicomTranscoder : IDicomTranscoder
Inheritance
DicomTranscoder
Implements
Inherited Members
Extension Methods

Constructors

DicomTranscoder(DicomTransferSyntax, DicomTransferSyntax, DicomCodecParams, DicomCodecParams)

Initializes an instance of DicomTranscoder.

public DicomTranscoder(DicomTransferSyntax inputSyntax, DicomTransferSyntax outputSyntax, DicomCodecParams inputCodecParams = null, DicomCodecParams outputCodecParams = null)

Parameters

inputSyntax DicomTransferSyntax

Input transfer syntax.

outputSyntax DicomTransferSyntax

Output transfer syntax.

inputCodecParams DicomCodecParams

Input codec parameters.

outputCodecParams DicomCodecParams

Output codec parameters.

Properties

InputCodecParams

Gets the parameters associated with the input codec.

public DicomCodecParams InputCodecParams { get; }

Property Value

DicomCodecParams

InputSyntax

Gets the transfer syntax of the input codec.

public DicomTransferSyntax InputSyntax { get; }

Property Value

DicomTransferSyntax

OutputCodecParams

Gets the parameters associated with the output codec.

public DicomCodecParams OutputCodecParams { get; }

Property Value

DicomCodecParams

OutputSyntax

Gets the transfer syntax of the output codec.

public DicomTransferSyntax OutputSyntax { get; }

Property Value

DicomTransferSyntax

Methods

DecodeFrame(DicomDataset, int)

Decompress single frame from DICOM dataset and return uncompressed frame buffer.

public IByteBuffer DecodeFrame(DicomDataset dataset, int frame)

Parameters

dataset DicomDataset

DICOM dataset.

frame int

Frame number.

Returns

IByteBuffer

Uncompressed frame buffer.

DecodePixelData(DicomDataset, int)

Decompress pixel data from DICOM dataset and return uncompressed pixel data.

public IPixelData DecodePixelData(DicomDataset dataset, int frame)

Parameters

dataset DicomDataset

DICOM dataset.

frame int

Frame number.

Returns

IPixelData

Uncompressed pixel data.

ExtractOverlays(DicomDataset)

public static DicomDataset ExtractOverlays(DicomDataset dataset)

Parameters

dataset DicomDataset

Returns

DicomDataset

Transcode(DicomDataset)

Transcode a DicomDataset from InputSyntax to OutputSyntax.

public DicomDataset Transcode(DicomDataset dataset)

Parameters

dataset DicomDataset

DICOM dataset.

Returns

DicomDataset

New, transcoded, DICOM dataset.

Transcode(DicomFile)

Transcode a DicomFile from InputSyntax to OutputSyntax.

public DicomFile Transcode(DicomFile file)

Parameters

file DicomFile

DICOM file.

Returns

DicomFile

New, transcoded, DICOM file.