Expand description

Adjust the hue, saturation and variance of an image

This filter allows one to play around with the HSV of an image and change them accordingly

The filter preserves the initial colorspace of the image

§Algorithm

The canonical way to do it is to convert the colorspace to HSL/HSV and manipulate in that colorspace and convert back to original colorspace

But we can do better, we really only need the HSV for manipulation so we can do HSV color transforms on RGB data using matrix multiplications

How to do that is found in this amazing article but the main gist is that instead of converting back and forth, use a simple matrix that allows such calculations this routine adapts that for use

Structs§

  • Create a new HSV adjust filter that manipulates pixels in RGB space