ImageGear for .NET
BuildPseudocolorLUT Method
Example 




Predefined pseudocoloring scheme.
Lookup table to fill. It should contain three single-channel LUTs with input and output depths set to 8.
Builds a pseudocolor LUT.
Syntax
'Declaration
 
Public Shared Sub BuildPseudocolorLUT( _
   ByVal scheme As ImGearPseudocolorSchemes, _
   ByVal lookupTable As ImGearRGBLUT _
) 
'Usage
 
Dim scheme As ImGearPseudocolorSchemes
Dim lookupTable As ImGearRGBLUT
 
ImGearDICOM.BuildPseudocolorLUT(scheme, lookupTable)
public static void BuildPseudocolorLUT( 
   ImGearPseudocolorSchemes scheme,
   ImGearRGBLUT lookupTable
)
public: static void BuildPseudocolorLUT( 
   ImGearPseudocolorSchemes scheme,
   ImGearRGBLUT* lookupTable
) 
public:
static void BuildPseudocolorLUT( 
   ImGearPseudocolorSchemes scheme,
   ImGearRGBLUT^ lookupTable
) 

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
ImGearPageDisplay pageDisplay = igPageView.Display;
ImGearContrastSettings contrastSettings = ImGearContrastSettings.CreateDefault();
ImGearRGBLUT LUT = new ImGearRGBLUT(8, 8);
ImGearDICOM.BuildPseudocolorLUT(ImGearPseudocolorSchemes.OilFilm, LUT);
pageDisplay.UpdateLUT(LUT, contrastSettings);
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

Reference

ImGearDICOM Class
ImGearDICOM Members
ImGearRGBLUT Class
ImGearPseudocolorSchemes Enumeration

 

 


©2014. Accusoft Corporation. All Rights Reserved.

Send Feedback