Class DicomJpegLosslessDecoder
- Namespace
- FellowOakDicom.Imaging.Codec.JpegLossless
- Assembly
- fo-dicom.core.dll
This class provides the conversion of a byte buffer containing a JPEGLossless to an MemoryBuffer. Therefore it uses a.Net port of the rii-mango JPEGLosslessDecoder Library written in Java(https://github.com/rii-mango/JPEGLosslessDecoder ) By Hermann Kroll
Take care, that only the following lossless formats are supported 1.2.840.10008.1.2.4.57 JPEG Lossless, Nonhierarchical (Processes 14) 1.2.840.10008.1.2.4.70 JPEG Lossless, Nonhierarchical (Processes 14[Selection 1])
Currently the following conversions are supported - 24Bit, RGB -> BufferedImage.TYPE_INT_RGB
- 8Bit, Grayscale -> BufferedImage.TYPE_BYTE_GRAY
- 16Bit, Grayscale -> BufferedImage.TYPE_USHORT_GRAY
public abstract class DicomJpegLosslessDecoder : DicomJpegCodec, IDicomCodec
- Inheritance
-
DicomJpegLosslessDecoder
- Implements
- Derived
- Inherited Members
- Extension Methods
Methods
Decode(DicomPixelData, DicomPixelData, DicomCodecParams)
public override void Decode(DicomPixelData oldPixelData, DicomPixelData newPixelData, DicomCodecParams parameters)
Parameters
oldPixelData
DicomPixelDatanewPixelData
DicomPixelDataparameters
DicomCodecParams
Encode(DicomPixelData, DicomPixelData, DicomCodecParams)
public override void Encode(DicomPixelData oldPixelData, DicomPixelData newPixelData, DicomCodecParams parameters)
Parameters
oldPixelData
DicomPixelDatanewPixelData
DicomPixelDataparameters
DicomCodecParams