ImageGear Professional for Windows ActiveX
CreateColorLimitsLUT Method

Description:

Creates a color LUT for pseudocoloring the brightest and the darkest pixels in a 8..16-bit grayscale image. This is usually used to clearly see pixel values that are over-saturated (255 and up) or under-saturated (0 and below). However, this method lets you customize the settings for the upper and lower pixel value limits with LowThreshold and HighThreshold.

The color is applied after the 16x8 display LUT is applied to the image and is not affected by altering this LUT.

Pixel values at or below LowThreshold are colored the "low color" and those at or above HighThreshold are colored the "high color". All pixel values in between the 2 limits are set to normal linear gray.

This method does not apply the color to an image. It only fills the color LUT. To apply the LUT to an image you need pass the LUT to IGPageDisplay Object.UpdateLUTFrom().

To turn off this effect, create a LUT using this method and specifying -1 as LowThreshold and 256 as HighThreshold, and pass this LUT to IGPageDisplay Object.UpdateLUTFrom().

Syntax:

      CreateColorLimitsLUT(LowTreshold As Long, HighTreshold As Long,
pLowColor As IGPixel, pHighColor As IGPixel) As IGPixelArray

Parameters:

Name Description
LowThreshold Set this to an Integer value for the lower pixel value limit. All pixels at or below this value will be pseudocolored.
HighThreshold Set this to an Integer value for the upper pixel value limit. All pixels at or below this value will be pseudocolored.
pLowColor Set it to a RGB pixel value that will be used for all pixels below LowThreshold.
pHighColor Set it to a RGB pixel value that will be used for all pixels above HighThreshold.

Return Value:

Color LUT for pseudocoloring the image.

Bits Per Pixel:

8..16g

Sample:

Med

 

 


©2016. Accusoft Corporation. All Rights Reserved.

Send Feedback