21#ifndef TFINTERPOLATOR_H
22#define TFINTERPOLATOR_H
77 static int divergentInterpolation(
float rgb1[3],
float rgb2[3],
float output[3],
float interp,
bool corrective =
false);
96 static float adjustHue(
float m1,
float s1,
float h1,
float m2);
108 static int msh2lab(
float msh[3],
float lab[3]);
132 static int lab2msh(
float lab[3],
float msh[3]);
158 static int rgb2hsv(
float rgb[3],
float hsv[3]);
159 static int hsv2rgb(
float hsv[3],
float rgb[3]);
164 static float XYZtransferMatrix[9];
165 static float XYZinverseMatrix[9];
static int divergentInterpolation(float rgb1[3], float rgb2[3], float output[3], float interp, bool corrective=false)
static int xyz2srgb(float xyz[3], float rgb[3])
static float interpCirc(type t, float leftVal, float rightVal, float r)
static int rgb2hsv(float rgb[3], float hsv[3])
static void correctiveDivergentInterpolation(float rgb1[3], float rgb2[3], float output[3], float interp)
static float interpolate(type, float leftVal, float rightVal, float r)
static int hsv2rgb(float hsv[3], float rgb[3])
static int rgb2srgb(float rgb[3], float srgb[3])
static int srgb2msh(float rgb[3], float msh[3])
static int srgb2rgb(float srgb[3], float rgb[3])
static int srgb2xyz(float rgb[3], float xyz[3])
static int msh2lab(float msh[3], float lab[3])
static float adjustHue(float m1, float s1, float h1, float m2)
static int msh2srgb(float msh[3], float rgb[3])
static int lab2msh(float lab[3], float msh[3])
static int lab2srgb(float lab[3], float rgb[3])
static float * genDivergentMap(float rgb1[3], float rgb2[3], int numColors)
static int srgb2lab(float rgb[3], float lab[3])