ChromaKey is the removal of a background for a source image so it can be replaced by an alternative image. RemoveChromaKey removes the KeyColor of an image and sets it to transparent. Although KeyColor is a single color, RemoveChromaKey will remove a range of colors that are similar to cope with light variance in photography.

Namespace: HiComponents.IEvolution
Assembly: IEvolution2 (in IEvolution2.dll) Version: 10.1.0.0

Syntax

         
 C#  Visual Basic  Visual C++ 
public void RemoveChromaKey(
	IERGB keyColorRGB,
	double tolerance,
	int saturation,
	int featherEdges,
	int hueReduction,
	bool removeNoise
)
Public Sub RemoveChromaKey ( _
	keyColorRGB As IERGB, _
	tolerance As Double, _
	saturation As Integer, _
	featherEdges As Integer, _
	hueReduction As Integer, _
	removeNoise As Boolean _
)
public:
void RemoveChromaKey(
	IERGB keyColorRGB, 
	double tolerance, 
	int saturation, 
	int featherEdges, 
	int hueReduction, 
	bool removeNoise
)

Parameters

keyColorRGB
IERGB
A typical color within the Chromakey background, e.g. as returned by GuessChromaKeyColor or CalcAverageRGB
tolerance
Double
The level of tolerance when seeking similar colors to our key color. Range: 0.0 to 1.0. Typical value: 0.21
saturation
Int32
If a pixel is of a hue within our keycolor range, limit removal to the specified saturation. Range: 0 to 100. Typical value: 30
featherEdges
Int32
Blurs the edge of the image to smooth the result and remove trace ChromaKey pixels (uses FeatherAlphaEdges. Typical value: 2
hueReduction
Int32
Pixels of a similar hue to our key color but outside the level of tolerance will be reduced in saturation (color intensity). 0 is no hue reduction, 1 is minimal, 5 is maximum. Settings of 0, 2 or 3 are best
removeNoise
Boolean
Removes stray pixels missed by the removal

See Also