Radeon ProRender

RGB Noise Filter

Filter

RIF_IMAGE_FILTER_RGB_NOISE

Description

Randomizes a fraction of pixel.

Parameters

Parameter Type Input/Output Description
level float input The percentage of pixels that will be randomly replaced by a random color.
Value range is [0, 1], default value is 0.5.

Usage Example

rif_image_filter filter = nullptr;
rifContextCreateImageFilter(context, RIF_IMAGE_FILTER_RGB_NOISE, &filter);
rifImageFilterSetParameter1f(filter, "level", 0.5f);
rifCommandQueueAttachImageFilter(queue, filter, inputImage, outputImage);
rifContextExecuteCommandQueue(context, queue, nullptr, nullptr, nullptr);

Results

Input image

Output image