Class PixelDataConverter
- Namespace
- FellowOakDicom.Imaging
- Assembly
- fo-dicom.core.dll
Convert pixels from presentation from interleaved to planar and from planar to interleaved
public static class PixelDataConverter
- Inheritance
-
PixelDataConverter
- Inherited Members
Methods
InterleavedToPlanar24(IByteBuffer)
Convert 24 bits pixels from interleaved (RGB) to planar (RRR...GGG...BBB...)
public static IByteBuffer InterleavedToPlanar24(IByteBuffer data)
Parameters
data
IByteBufferPixels data in interleaved format (RGB)
Returns
- IByteBuffer
Pixels data in planar format (RRR...GGG...BBB...)
PlanarToInterleaved24(IByteBuffer)
Convert 24 bits pixels from planar (RRR...GGG...BBB...) to interleaved (RGB)
public static IByteBuffer PlanarToInterleaved24(IByteBuffer data)
Parameters
data
IByteBufferPixels data in planar format (RRR...GGG...BBB...)
Returns
- IByteBuffer
Pixels data in interleaved format (RGB)
ReverseBits(IByteBuffer)
Reverses bits for each byte in buffer.
public static IByteBuffer ReverseBits(IByteBuffer data)
Parameters
data
IByteBufferOriginal data subject to reversal.
Returns
- IByteBuffer
Buffer of reversed data.
YbrFull422ToRgb(IByteBuffer, int)
Convert YBR_FULL_422 photometric interpretation pixels to RGB.
public static IByteBuffer YbrFull422ToRgb(IByteBuffer data, int width)
Parameters
data
IByteBufferArray of YBR_FULL_422 photometric interpretation pixels.
width
intImage width.
Returns
- IByteBuffer
Array of pixel data in RGB photometric interpretation.
YbrFullToRgb(IByteBuffer)
Convert YBR_FULL photometric interpretation pixels to RGB.
public static IByteBuffer YbrFullToRgb(IByteBuffer data)
Parameters
data
IByteBufferArray of YBR_FULL photometric interpretation pixels.
Returns
- IByteBuffer
Array of pixel data in RGB photometric interpretation.
YbrPartial422ToRgb(IByteBuffer, int)
Convert YBR_PARTIAL_422 photometric interpretation pixels to RGB.
public static IByteBuffer YbrPartial422ToRgb(IByteBuffer data, int width)
Parameters
data
IByteBufferArray of YBR_PARTIAL_422 photometric interpretation pixels.
width
intImage width.
Returns
- IByteBuffer
Array of pixel data in RGB photometric interpretation.