ImageGear for .NET
BuildPseudocolorLUT Method
See Also  Example Send Feedback
ImageGear21.Formats.Dicom Assembly > ImageGear.Formats.DICOM Namespace > ImGearDICOM Class : BuildPseudocolorLUT Method




scheme
Predefined pseudocoloring scheme.
lookupTable
Lookup table to fill. It should contain three single-channel LUTs with input and output depths set to 8.

Glossary Item Box

Builds a pseudocolor LUT.

Syntax

 
Visual Basic
C#
Managed Extensions for C++
C++/CLI
 
 

Parameters

scheme
Predefined pseudocoloring scheme.
lookupTable
Lookup table to fill. It should contain three single-channel LUTs with input and output depths set to 8.

Remarks

This method fills a lookup table (LUT) according to one of the predefined 24-bit RGB to 24-bit RGB pseudocoloring schemes. Use this method to initialize ImageGear.Display.ImGearPageDisplay.LUT property.

ImageGear.Display.ImGearPageDisplay.LUT property is used on the last stage of display processing, when 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.

Example

C#Copy Code
ImGearPageDisplay pageDisplay = igPageView.Display;
ImGearContrastSettings contrastSettings = ImGearContrastSettings.CreateDefault();
ImGearRGBLUT LUT = new ImGearRGBLUT(8, 8);
ImGearDICOM.BuildPseudocolorLUT(ImGearPseudocolorSchemes.OilFilm, LUT);
pageDisplay.UpdateLUT(LUT, contrastSettings);
Visual BasicCopy Code
Dim pageDisplay As ImGearPageDisplay = igPageView.Display
Dim contrastSettings As ImGearContrastSettings = ImGearContrastSettings.CreateDefault()
Dim LUT As ImGearRGBLUT = New ImGearRGBLUT(8, 8)
ImGearDICOM.BuildPseudocolorLUT(ImGearPseudocolorSchemes.OilFilm, LUT)
pageDisplay.UpdateLUT(LUT, contrastSettings)

See Also

©2013. Accusoft Corporation. All Rights Reserved.