Class PixelDataConverter
Convert pixels from presentation from interleaved to planar and from planar to interleaved
Inherited Members
Namespace: Dicom.Imaging
Assembly: cs.temp.dll.dll
Syntax
public static class PixelDataConverterMethods
InterleavedToPlanar24(IByteBuffer)
Convert 24 bits pixels from interleaved (RGB) to planar (RRR...GGG...BBB...)
Declaration
public static IByteBuffer InterleavedToPlanar24(IByteBuffer data)Parameters
| Type | Name | Description | 
|---|---|---|
| IByteBuffer | data | Pixels data in interleaved format (RGB) | 
Returns
| Type | Description | 
|---|---|
| IByteBuffer | Pixels data in planar format (RRR...GGG...BBB...) | 
PlanarToInterleaved24(IByteBuffer)
Convert 24 bits pixels from planar (RRR...GGG...BBB...) to interleaved (RGB)
Declaration
public static IByteBuffer PlanarToInterleaved24(IByteBuffer data)Parameters
| Type | Name | Description | 
|---|---|---|
| IByteBuffer | data | Pixels data in planar format (RRR...GGG...BBB...) | 
Returns
| Type | Description | 
|---|---|
| IByteBuffer | Pixels data in interleaved format (RGB) | 
ReverseBits(IByteBuffer)
Reverses bits for each byte in buffer.
Declaration
public static IByteBuffer ReverseBits(IByteBuffer data)Parameters
| Type | Name | Description | 
|---|---|---|
| IByteBuffer | data | Original data subject to reversal. | 
Returns
| Type | Description | 
|---|---|
| IByteBuffer | Buffer of reversed data. | 
YbrFull422ToRgb(IByteBuffer, Int32)
Convert YBR_FULL_422 photometric interpretation pixels to RGB.
Declaration
public static IByteBuffer YbrFull422ToRgb(IByteBuffer data, int width)Parameters
| Type | Name | Description | 
|---|---|---|
| IByteBuffer | data | Array of YBR_FULL_422 photometric interpretation pixels. | 
| Int32 | width | Image width. | 
Returns
| Type | Description | 
|---|---|
| IByteBuffer | Array of pixel data in RGB photometric interpretation. | 
YbrFullToRgb(IByteBuffer)
Convert YBR_FULL photometric interpretation pixels to RGB.
Declaration
public static IByteBuffer YbrFullToRgb(IByteBuffer data)Parameters
| Type | Name | Description | 
|---|---|---|
| IByteBuffer | data | Array of YBR_FULL photometric interpretation pixels. | 
Returns
| Type | Description | 
|---|---|
| IByteBuffer | Array of pixel data in RGB photometric interpretation. | 
YbrPartial422ToRgb(IByteBuffer, Int32)
Convert YBR_PARTIAL_422 photometric interpretation pixels to RGB.
Declaration
public static IByteBuffer YbrPartial422ToRgb(IByteBuffer data, int width)Parameters
| Type | Name | Description | 
|---|---|---|
| IByteBuffer | data | Array of YBR_PARTIAL_422 photometric interpretation pixels. | 
| Int32 | width | Image width. | 
Returns
| Type | Description | 
|---|---|
| IByteBuffer | Array of pixel data in RGB photometric interpretation. |