ImageGear .NET v25.2 - Updated
BuildStandardDisplayLUT Method
Example 




ImageGear.Formats.Dicom Assembly > ImageGear.Formats.DICOM Namespace > ImGearDICOM Class : BuildStandardDisplayLUT Method
Input depth of the LUT. inputDepth = 12 is the typical value, sufficient for most medical images.
Output depth of the LUT. Set to 8 for a monitor that can display 256 shades of gray.
Characteristic curve of the display device.
Builds Standard Display LUT.
Syntax
'Declaration
 
Public Shared Function BuildStandardDisplayLUT( _
   ByVal inputDepth As Integer, _
   ByVal outputDepth As Integer, _
   ByVal characteristicCurve() As Double _
) As ImGearFullLUT
'Usage
 
Dim inputDepth As Integer
Dim outputDepth As Integer
Dim characteristicCurve() As Double
Dim value As ImGearFullLUT
 
value = ImGearDICOM.BuildStandardDisplayLUT(inputDepth, outputDepth, characteristicCurve)
public static ImGearFullLUT BuildStandardDisplayLUT( 
   int inputDepth,
   int outputDepth,
   double[] characteristicCurve
)
public: static ImGearFullLUT* BuildStandardDisplayLUT( 
   int inputDepth,
   int outputDepth,
   double[]* characteristicCurve
) 
public:
static ImGearFullLUT^ BuildStandardDisplayLUT( 
   int inputDepth,
   int outputDepth,
   array<double>^ characteristicCurve
) 

Parameters

inputDepth
Input depth of the LUT. inputDepth = 12 is the typical value, sufficient for most medical images.
outputDepth
Output depth of the LUT. Set to 8 for a monitor that can display 256 shades of gray.
characteristicCurve
Characteristic curve of the display device.

Return Value

New instance of ImageGear.Core.ImGearFullLUT class object, containing the Standard Display LUT, based on the provided characteristic curve.
Remarks
This method builds a lookup table that maps pixel intensities from DICOM Presentation space (P-Values) into pixel intensities of the display device. Use this lookup table to initialize ImGearDICOMDisplaySettings class.

The source data for this method is a characteristic curve - an array that lists luminosities of display device corresponding to each pixel intensity.

Example
double[] characteristicCurve = new double[] { };
// Fill characteristic curve, e.g. load from a file
ImGearFullLUT stdLUT = ImGearDICOM.BuildStandardDisplayLUT(12, 8, characteristicCurve);
Dim characteristicCurve As Double() = New Double() {}
' Fill characteristic curve, e.g. load from a file
Dim stdLUT As ImGearFullLUT = ImGearDICOM.BuildStandardDisplayLUT(12, 8, characteristicCurve)
See Also

Reference

ImGearDICOM Class
ImGearDICOM Members
ImGearFullLUT Class

Is this page helpful?
Yes No
Thanks for your feedback.