HSV for Stain Type Identification
In brightfield imaging, different chromogens (DAB brown, hematoxylin blue, Fast Red) have distinct hues. Converting to HSV and thresholding on the hue channel can separate stain types by color alone, regardless of staining intensity. This is a simpler alternative to full color deconvolution for some applications.
Lab for Color Distance
When comparing stain colors — e.g., determining whether two reference shades represent the same chromogen — Lab provides the most meaningful distance metric. Two colors with ΔE (Euclidean distance in Lab) < 2 are visually indistinguishable.
Grayscale for Single-Channel Processing
Many BOM operations (filtering, thresholding, morphology) require grayscale input. RGB to Grayscale converts color images to a single intensity channel using perceptually weighted averaging. Note: for quantitative IHC analysis, use Color Separation or OD conversion instead — they provide stain-specific channels rather than a generic intensity average.
Histogram Equalization in HSV
Solomon & Breckon warn that equalizing R, G, B channels independently "will alter the chromatic (colour hue) content." The correct approach: convert to HSV, equalize only the V channel, then convert back — this enhances contrast without distorting colors.
Use HSV when you need to separate color from brightness — e.g., finding all purple-stained regions regardless of staining strength. Use Lab when comparing colors quantitatively. Use Grayscale when you need a single intensity channel for operations that don't understand color. For quantitative IHC analysis, prefer Color Separation or OD conversion over simple grayscale.