imToneGamut

Tone Gamut Operations. * \ingroup tonegamut

Values

ValueMeaning
IM_GAMUT_NORMALIZE

< normalize = (a-min) / (max-min) (result is always real)

IM_GAMUT_POW

< pow = ((a-min) / (max-min))^gamma * (max-min) + min \n params[0]=gamma

IM_GAMUT_LOG

< log = log(K * (a-min) / (max-min) + 1))*(max-min)/log(K+1) + min \n params[0]=K (K>0)

IM_GAMUT_EXP

< exp = (exp(K * (a-min) / (max-min)) - 1))*(max-min)/(exp(K)-1) + min \n params[0]=K

IM_GAMUT_INVERT

< invert = max - (a-min)

IM_GAMUT_ZEROSTART

< zerostart = a - min

IM_GAMUT_SOLARIZE

< solarize = a < level ? a: (level * (max-min) - a * (level-min)) / (max-level) \n params[0]=level percentage (0-100) relative to min-max \n photography solarization effect.

IM_GAMUT_SLICE

< slice = start < a || a > end ? min: binarize? max: a \n params[0]=start, params[1]=end, params[2]=binarize

IM_GAMUT_EXPAND

< expand = a < start ? min: a > end ? max : (a-start)*(max-min)/(end-start) + min \n params[0]=start, params[1]=end

IM_GAMUT_CROP

< crop = a < start ? start: a > end ? end : a \n params[0]=start, params[1]=end

IM_GAMUT_BRIGHTCONT

< brightcont = a < min ? min: a > max ? max: a * tan(c_a) + b_s + (max-min)*(1 - tan(c_a))/2 \n params[0]=bright_shift (-100%..+100%), params[1]=contrast_factor (-100%..+100%) \n change brightness and contrast simultaneously.

Meta