ImageGear Professional for Windows ActiveX
AddChromaKey Method

Description:

Blends two images, inserting the pixel values from image referenced by pBackPage object wherever the pixel from image referenced by pPage object is in the hue range specified by hueRange parameter. The background image referenced by pBackPage object must have the same height, width, and bit depth as the foreground image referenced by pPage object. You can control the smoothness of the transitions using Smooth parameter, and you can prevent the hue of dark pixels from being considered using IntensityThreshold parameter. To determine the proper hue center and hue range, you may want to use the IGPage Object.GetPixelCopy and IGProcessingCtl Control.GetHueValue Method . The hue is not a 8-bit HSI. HSI is the name of the color space.

This method takes into account the ROI settings of pPage object, that are accessible via the IGPage Object.ROI Property. By default ROI is set to the entire image.

Syntax:

      AddChromaKey (pPage As IGPage, pBackPage As IGPage, hueCenter As
Double, hueRange As Double, Smooth As Long, IntensityThreshold
As Long)

Parameters:

Name Description
pPage Reference to IGPage Object of the foreground image to modify where the specified hue is found.
pBackPage Reference to IGPage Object of the background image to insert from on hue match.
hueCenter Angle of the matching hue in the standard 360 degrees Color Wheel format. 360 has the same meaning as 0.
hueRange Range in the standard 360 degrees Color Wheel format to allow on either side.
Smooth Value between 0 and 25 specifying how much to smooth the transition. 0 gives the sharpest edge.
IntensityThreshold Intensity value between 0 and 255 specifying the threshold below which to ignore the hue. 0 is the sharpest edge.

Return Value:

N/A

Bits Per Pixel:

8-bit gray level, 9-16-bit gray level, 24, and 32

Sample:

Ip_Fx

 

 


©2016. Accusoft Corporation. All Rights Reserved.

Send Feedback