ImageGear21.Formats.Dicom Assembly > ImageGear.Formats.DICOM Namespace > ImGearDICOM Class : BuildColorLimitsLUT Method |
highThreshold
.
'Declaration Public Shared Sub BuildColorLimitsLUT( _ ByVal lowThreshold As Integer, _ ByVal lowFillColor As ImGearPixel, _ ByVal highThreshold As Integer, _ ByVal highFillColor As ImGearPixel, _ ByVal lookupTable As ImGearRGBLUT _ )
'Usage Dim lowThreshold As Integer Dim lowFillColor As ImGearPixel Dim highThreshold As Integer Dim highFillColor As ImGearPixel Dim lookupTable As ImGearRGBLUT ImGearDICOM.BuildColorLimitsLUT(lowThreshold, lowFillColor, highThreshold, highFillColor, lookupTable)
public static void BuildColorLimitsLUT( int lowThreshold, ImGearPixel lowFillColor, int highThreshold, ImGearPixel highFillColor, ImGearRGBLUT lookupTable )
public: static void BuildColorLimitsLUT( int lowThreshold, ImGearPixel* lowFillColor, int highThreshold, ImGearPixel* highFillColor, ImGearRGBLUT* lookupTable )
public: static void BuildColorLimitsLUT( int lowThreshold, ImGearPixel^ lowFillColor, int highThreshold, ImGearPixel^ highFillColor, ImGearRGBLUT^ lookupTable )
highThreshold
.lowThreshold
and highThreshold
.
ImageGear.Display.ImGearPageDisplay.LUT property is used on the last stage of display processing, after that all geometric, color space and depth conversions have been done. This allows you to use a 24-bit RGB to 24-bit RGB lookup table for displaying images of any color space and depth.
ImGearPageDisplay pageDisplay = igPageView.Display; // Highlight low values with blue ImGearPixel lowColor = new ImGearPixel(3, 8); lowColor[0] = 0; lowColor[1] = 0; lowColor[2] = 255; // Highlight high values with red ImGearPixel highColor = new ImGearPixel(3, 8); highColor[0] = 255; highColor[1] = 0; highColor[2] = 0; ImGearRGBLUT LUT = new ImGearRGBLUT(8, 8); ImGearContrastSettings contrastSettings = ImGearContrastSettings.CreateDefault(); ImGearDICOM.BuildColorLimitsLUT(0, lowColor, 255, highColor, LUT); pageDisplay.UpdateLUT(LUT, contrastSettings);
Dim pageDisplay As ImGearPageDisplay = igPageView.Display ' Highlight low values with blue Dim lowColor As ImGearPixel = New ImGearPixel(3, 8) lowColor(0) = 0 lowColor(1) = 0 lowColor(2) = 255 ' Highlight high values with red Dim highColor As ImGearPixel = New ImGearPixel(3, 8) highColor(0) = 255 highColor(1) = 0 highColor(2) = 0 Dim LUT As ImGearRGBLUT = New ImGearRGBLUT(8, 8) Dim contrastSettings As ImGearContrastSettings = ImGearContrastSettings.CreateDefault() ImGearDICOM.BuildColorLimitsLUT(0, lowColor, 255, highColor, LUT) pageDisplay.UpdateLUT(LUT, contrastSettings)