Skip to content

Color Filter

The Color Filter command keeps only pixels whose colour falls within a defined HSV (Hue–Saturation–Value) range and sets all other pixels to zero.

When to use

Use this command on RGB colour images to isolate a specific stain colour before greyscale processing. For example, extracting a haematoxylin (blue/purple) stain from an H&E image.

Parameters

ParameterDescription
Min H / Max HHue range (0°–360°)
Min S / Max SSaturation range (0.0–1.0)
Min V / Max VValue (brightness) range (0.0–1.0)

HSV overview

ComponentDescription
HueThe colour angle on the colour wheel (0° = red, 120° = green, 240° = blue)
SaturationColour purity (0 = grey, 1 = fully saturated)
ValueBrightness (0 = black, 1 = full brightness)

Notes

Pixels with hue spanning the red wrap-around (near 0° / 360°) can be captured by setting Min H to a value close to 360° and Max H to a value near 0°; EVAnalyzer handles the circular wrap automatically.