Radeon ProRender

Spread Filter

Filter

RIF_IMAGE_FILTER_SPREAD

Description

Moves pixels around randomly.

Parameters

Parameter Type Input/Output Description
offsets uint2 input Maximum pixel offset in x and y directions.

Usage Example

rif_image_filter filter = nullptr;
rifContextCreateImageFilter(context, RIF_IMAGE_FILTER_SPREAD, &filter);
rifImageFilterSetParameter2u(filter, "offsets", 3, 3);
rifCommandQueueAttachImageFilter(queue, filter, inputImage, outputImage);
rifContextExecuteCommandQueue(context, queue, nullptr, nullptr, nullptr);

Results

Input image

Output image