I want to ajust the hue, saturation and luminace of an image for specific color shades using OpenGLES or GPUImageFilter.
I want to ajust the hue, saturation and luminace of an image for specific color shades using OpenGLES or GPUImageFilter.
Seems like there's no built-in functionality for it in this library. So, you can implement it yourself by extending GPUImageFilter and writing a corresponding shader.
You can reuse existing Hue, Saturation, and Luminance filters. The idea is simple - you're passing an additional parameter (color) to the shader. Based on this color and the color of the current pixel, you can choose if the current pixel should be affected by the shader or not.