Radeon ProRender

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.
Default value is 1.
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 range is [-180, 180], default value is 0.
value float input Brightness multiplier.
Default value is 1.

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);

Results