If ColorizeMatched is true then this method colorizes pixels that match the specified HSV (Hue, Saturation and Value) range to MatchColor color.

If ColorizeNonMatched is true, non matching pixels are set to NonMatchColor.

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

Syntax

         
 C#  Visual Basic  Visual C++ 
public int MatchHSVRange(
	int hueBegin,
	int hueEnd,
	int satBegin,
	int satEnd,
	int valBegin,
	int valEnd,
	IERGB matchColor,
	IERGB nonMatchColor
)
Public Function MatchHSVRange ( _
	hueBegin As Integer, _
	hueEnd As Integer, _
	satBegin As Integer, _
	satEnd As Integer, _
	valBegin As Integer, _
	valEnd As Integer, _
	matchColor As IERGB, _
	nonMatchColor As IERGB _
) As Integer
public:
int MatchHSVRange(
	int hueBegin, 
	int hueEnd, 
	int satBegin, 
	int satEnd, 
	int valBegin, 
	int valEnd, 
	IERGB matchColor, 
	IERGB nonMatchColor
)

Parameters

hueBegin
Int32
Starting Hue value. 0..359
hueEnd
Int32
Ending Hue value. 0..359
satBegin
Int32
Starting Saturation value. 0..99
satEnd
Int32
Ending Saturation value. 0..99
valBegin
Int32
Starting Intensity value. 0..99
valEnd
Int32
Ending Intensity value. 0..99
matchColor
IERGB
New pixel color when HSV conversion fit inside specified ranges.
nonMatchColor
IERGB
New pixel color when HSV conversion does not fit inside specified ranes.

Return Value

Returns the number of matching pixels.

See Also