Table of Contents

Enum DicomWindowFunction

Namespace
Egami.Formats.Extended.Dicom
Assembly
Egami.Formats.Extended.dll

A VOI LUT Function (0028,1056): how a window maps modality values to shown values (PS3.3 C.11.2.1.2).

[Experimental("EGAMIX001", UrlFormat = "https://github.com/inexin/Egami/blob/main/docs/articles/formats/dicom.md")]
public enum DicomWindowFunction

Fields

Linear = 0

LINEAR: a straight ramp from center − 0.5 − (width − 1) / 2 to center − 0.5 + (width − 1) / 2.

LinearExact = 1

LINEAR_EXACT: a straight ramp from center − width / 2 to center + width / 2.

Sigmoid = 2

SIGMOID: a logistic curve centered on center, with slope set by width.

Examples

// A window of your own, in modality values (Hounsfield units for CT), or the file's second one.
using Raster bone = Raster.Load("scan.dcm", context, new DicomReaderOptions { WindowCenter = 400, WindowWidth = 1800 });
using Raster second = Raster.Load("scan.dcm", context, new DicomReaderOptions { WindowIndex = 1 });
using Raster smooth = Raster.Load("scan.dcm", context,
    new DicomReaderOptions { WindowCenter = 40, WindowWidth = 400, WindowFunction = DicomWindowFunction.Sigmoid });