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
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
ModalityLUT
Modality LUT Sequence
public IModalityLUT ModalityLUT { get; }
Property Value
RescaleIntercept
Pixel data rescale interception
public double RescaleIntercept { get; }
Property Value
RescaleSlope
Pixel data rescale slope
public double RescaleSlope { get; }
Property Value
UseVOILUT
Use VOI LUT if available
public bool UseVOILUT { get; set; }
Property Value
VOILUTFunction
VOI LUT function (LINEAR or SEGMOID)
public string VOILUTFunction { get; }
Property Value
VOILUTSequence
VOI LUT Sequence
public DicomSequence VOILUTSequence { get; }
Property Value
WindowCenter
Window center
public double WindowCenter { get; set; }
Property Value
WindowWidth
Window width
public double WindowWidth { get; set; }
Property Value
Methods
CreateLinearOption(BitDepth, double, double)
public static GrayscaleRenderOptions CreateLinearOption(BitDepth bits, double minValue, double maxValue)
Parameters
Returns
FromBitRange(DicomDataset)
Create grayscale render options based on bit range.
public static GrayscaleRenderOptions FromBitRange(DicomDataset dataset)
Parameters
dataset
DicomDatasetDICOM 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
DicomDatasetDataset to extract GrayscaleRenderOptions from
frame
intThe 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
DicomDatasetDICOM dataset from which render options should be obtained.
frame
intZero-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
DicomDatasetDICOM dataset from which render options should be obtained.
percent
intPercentage 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
DicomDatasetDICOM 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
DicomDatasetDICOM 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
DicomDatasetDICOM dataset from which render options should be obtained.
frame
intZero-based frame index. Use 0 in case of a single-framed image.
Returns
- GrayscaleRenderOptions
Grayscale render options based on window level data.