Sharpen Filter
Filter
RIF_IMAGE_FILTER_SHARPEN
Description
Makes the image sharper. Filter enhances the edges of objects in the image.
Parameters
Parameter |
Type |
Input/Output |
Description |
---|---|---|---|
sharpness |
float |
input |
Sharpness level. The greater the value, the more distinct the edges of objects are. |
Usage Example
rif_image_filter filter = nullptr;
rifContextCreateImageFilter(context, RIF_IMAGE_FILTER_SHARPEN, &filter);
rifImageFilterSetParameter1f(filter, "sharpness", 0.5f);
rifCommandQueueAttachImageFilter(queue, filter, inputImage, outputImage);
rifContextExecuteCommandQueue(context, queue, nullptr, nullptr, nullptr);
Results
Input image |
Output image (sharpness = 1) |