Hue Saturation Changing Filter
Filter
RIF_IMAGE_FILTER_HUE_SATURATION
Description
Hue-saturation tool. Adjusts hue, saturation and brightness.
Parameters
Parameter |
Type |
Input/Output |
Description |
---|---|---|---|
saturation |
float |
input |
Saturation value. Saturation is the “colorfulness of an area judged in proportion to its brightness” which in effect is the perceived freedom from whitishness of the light coming from the area. |
hue |
float |
input |
The degree to which a stimulus can be described as similar to or different from stimuli that are described as red, green, blue, and yellow. |
value |
float |
input |
Brightness multiplier. |
Usage Example
rif_image_filter filter = nullptr;
rifContextCreateImageFilter(context, RIF_IMAGE_FILTER_HUE_SATURATION, &filter);
rifImageFilterSetParameter1f(filter, "saturation", 1.0f);
rifImageFilterSetParameter1f(filter, "hue", 90.0f);
rifCommandQueueAttachImageFilter(queue, filter, inputImage, outputImage);
rifContextExecuteCommandQueue(context, queue, nullptr, nullptr, nullptr);