Builds a LUT that highlights image extremes.
Syntax
Parameters
- lowThreshold
- Lower pixel value limit. All pixels at or below this value will be pseudocolored.
- lowFillColor
- An RGB value that will be used to fill (i.e. pseudocolor) the pixels with intensities
equal or smaller than lowThreshold.
- highThreshold
- Higher pixel value limit. All pixels at or above this value will be pseudocolored.
- highFillColor
- An RGB value that will be used to fill (i.e. pseudocolor) the pixels with intensities equal or greater than
highThreshold
. - lookupTable
- Lookup table to fill. It should contain three single-channel LUTs with input and
output depths set to 8.
Example
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)
See Also