Table of Contents

Interface IPixelData

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

Pixel data interface implemented by various pixel format classes

public interface IPixelData
Extension Methods

Properties

Components

Gets number of pixel components (normally 1 for grayscale, 1 for palette, and 3 for RGB and YBR).

int Components { get; }

Property Value

int

Height

Gets image height (rows) in pixels.

int Height { get; }

Property Value

int

Width

Gets image width (columns) in pixels.

int Width { get; }

Property Value

int

Methods

GetHistogram(int)

Gets a histogram of the pixel data for a given channel.

Histogram GetHistogram(int channel)

Parameters

channel int

The channel for which the histogram is requested.

Returns

Histogram

Histogram of the pixel data for the given channel.

GetMinMax()

Return the minimum and maximum pixel values from pixel data.

DicomRange<double> GetMinMax()

Returns

DicomRange<double>

Range of calculated minimum and maximum values.

GetMinMax(int)

Return the minimum and maximum pixel values from pixel data. The padding value is taken into account.

DicomRange<double> GetMinMax(int padding)

Parameters

padding int

Padding value to ignore in min-max determination.

Returns

DicomRange<double>

Range of calculated minimum and maximum values.

GetPixel(int, int)

Gets the value of the pixel at the specified coordinates.

double GetPixel(int x, int y)

Parameters

x int

X

y int

Y

Returns

double

Pixel value

Render(ILUT, int[])

Render the pixel data after applying lut to the output array (allocated by user)

void Render(ILUT lut, int[] output)

Parameters

lut ILUT

Lookup table to render the pixels into output pixels

output int[]

The output array to store the result in

Rescale(double)

Gets a rescaled copy of the pixel data.

IPixelData Rescale(double scale)

Parameters

scale double

Copy scale.

Returns

IPixelData

Rescaled copy of the pixel data.