Linear Tone Mapping Filter
Filter
RIF_IMAGE_FILTER_LINEAR_TONEMAP
Description
A simple tone mapping algorithm. Multiplies values of pixels by a constant.
Parameters
Parameter |
Type |
Input/Output |
Description |
---|---|---|---|
key |
float |
input |
Linear coefficient by which the brightness of the image is multiplied. |
Usage Example
rif_image_filter filter = nullptr;
rifContextCreateImageFilter(context, RIF_IMAGE_FILTER_LINEAR_TONEMAP, &filter);
rifImageFilterSetParameter1f(filter, "key", 0.5f);
rifCommandQueueAttachImageFilter(queue, filter, inputImage, outputImage);
rifContextExecuteCommandQueue(context, queue, nullptr, nullptr, nullptr);