Table of Contents

Class GrayscaleRenderOptions

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

Grayscale rendering options class

public class GrayscaleRenderOptions
Inheritance
GrayscaleRenderOptions
Inherited Members
Extension Methods

Properties

BitDepth

BitDepth used to initialize the GrayscaleRenderOptions

public BitDepth BitDepth { get; }

Property Value

BitDepth

ColorMap

Gets or sets the color map associated with the grayscale image.

public Color32[] ColorMap { get; set; }

Property Value

Color32[]

Invert

Set to true to render the output in inverted grey

public bool Invert { get; set; }

Property Value

bool

ModalityLUT

Modality LUT Sequence

public IModalityLUT ModalityLUT { get; }

Property Value

IModalityLUT

RescaleIntercept

Pixel data rescale interception

public double RescaleIntercept { get; }

Property Value

double

RescaleSlope

Pixel data rescale slope

public double RescaleSlope { get; }

Property Value

double

UseVOILUT

Use VOI LUT if available

public bool UseVOILUT { get; set; }

Property Value

bool

VOILUTFunction

VOI LUT function (LINEAR or SEGMOID)

public string VOILUTFunction { get; }

Property Value

string

VOILUTSequence

VOI LUT Sequence

public DicomSequence VOILUTSequence { get; }

Property Value

DicomSequence

WindowCenter

Window center

public double WindowCenter { get; set; }

Property Value

double

WindowWidth

Window width

public double WindowWidth { get; set; }

Property Value

double

Methods

CreateLinearOption(BitDepth, double, double)

public static GrayscaleRenderOptions CreateLinearOption(BitDepth bits, double minValue, double maxValue)

Parameters

bits BitDepth
minValue double
maxValue double

Returns

GrayscaleRenderOptions

FromBitRange(DicomDataset)

Create grayscale render options based on bit range.

public static GrayscaleRenderOptions FromBitRange(DicomDataset dataset)

Parameters

dataset DicomDataset

DICOM dataset from which render options should be obtained.

Returns

GrayscaleRenderOptions

Grayscale render options based on bit range.

FromDataset(DicomDataset, int)

Create GrayscaleRenderOptions from dataset and populate the options properties with values: Bit Depth Rescale Slope Rescale Intercept Window Width Window Center

public static GrayscaleRenderOptions FromDataset(DicomDataset dataset, int frame)

Parameters

dataset DicomDataset

Dataset to extract GrayscaleRenderOptions from

frame int

The zero-based frame index for which the grayscale options should be extracted. Use 0 in case of a single-framed image.

Returns

GrayscaleRenderOptions

New grayscale render options instance

FromFunctionalWindowLevel(DicomDataset, int)

Create grayscale render options based on window level data stored in functional groups in enhanced multiframe images

public static GrayscaleRenderOptions FromFunctionalWindowLevel(DicomDataset dataset, int frame)

Parameters

dataset DicomDataset

DICOM dataset from which render options should be obtained.

frame int

Zero-based frame index. Use 0 in case of a single-framed image.

Returns

GrayscaleRenderOptions

Grayscale render options based on window level data.

FromHistogram(DicomDataset, int)

Create grayscale render options based on pixel data histogram.

public static GrayscaleRenderOptions FromHistogram(DicomDataset dataset, int percent = 90)

Parameters

dataset DicomDataset

DICOM dataset from which render options should be obtained.

percent int

Percentage of histogram window to include.

Returns

GrayscaleRenderOptions

Grayscale render options based on pixel data histogram.

FromImagePixelValueTags(DicomDataset)

Create grayscale render options based on specified image pixel values.

public static GrayscaleRenderOptions FromImagePixelValueTags(DicomDataset dataset)

Parameters

dataset DicomDataset

DICOM dataset from which render options should be obtained.

Returns

GrayscaleRenderOptions

Grayscale render options based on specified image pixel values.

FromMinMax(DicomDataset)

Create grayscale render options based on identified minimum and maximum pixel values.

public static GrayscaleRenderOptions FromMinMax(DicomDataset dataset)

Parameters

dataset DicomDataset

DICOM dataset from which render options should be obtained.

Returns

GrayscaleRenderOptions

Grayscale render options based on identified minimum and maximum pixel values.

FromWindowLevel(DicomDataset, int)

Create grayscale render options based on window level data.

public static GrayscaleRenderOptions FromWindowLevel(DicomDataset dataset, int frame = 0)

Parameters

dataset DicomDataset

DICOM dataset from which render options should be obtained.

frame int

Zero-based frame index. Use 0 in case of a single-framed image.

Returns

GrayscaleRenderOptions

Grayscale render options based on window level data.