21 #include "../basic_types.h"
22 #include "../color/matrix.h"
41 void setup(
bool useGpu);
69 void setHSVCorrection(
float hueShiftDegrees,
float saturationFactor = 1.0f,
float valueFactor = 1.0f);
Color matrix filter: applies mapping Ax + B at each pixel of a given image in RGBA space.
void setBrightness(float brightness)
Sets a brightness adjustment by a given factor (non-cumulative with respect to the current transforma...
void setColorInversion(color3f preservedHue, float saturationFactor=1.0f, float valueFactor=1.0f)
Resets the current transformation to a fancy color inversion mode with a fixed hue point.
bool allowIntApprox
allow integer approximation of the coefficients
void allowIntegerApproximations(bool allow)
bool isIntegerApproximationsAllowed() const
void setHSVCorrection(float hueShiftDegrees, float saturationFactor=1.0f, float valueFactor=1.0f)
Resets the current transformation to a matrix performing standard HSV correction.
void setup(bool useGpu)
A callback run every time before the filter is applied to the image.
std::string getGlslSourceCode() const
Provides GLSL source code of the filter.
void setCoefficients(int outChannel, float bias, float r=.0f, float g=.0f, float b=.0f, float a=.0f)
Sets color matrix coefficients for a specific output color channel.
std::string getGlslDeclarations() const
Provides GLSL declarations used in the GLSL code.
void apply(int x, int y, msize nPix, TaskThread &thread)
Applies filtering to given pixel data.
color4f bias
added constant
Color::Matrix matrix
the matrix
void applyContrast(float factor)
Applies a contrast adjustment by a given factor on top of the current transformation.
Color::Matrix & getMatrix()
Base class for image filters processing a given bitmap in a pixelwise fashion.
uint32_t msize
memory size
jobject jlong jint jint jint jint g
jobject jlong jint jint jint jint jint b
jobject jlong jint jint y
jobject jlong jint jint jint r
jobject jlong jint jint jint jint jint jint a
layer getMapping().setCenterPosition(Beatmup jlong jfloat factor