6#ifndef KOGAMUTMAPPINGUTILS_H
7#define KOGAMUTMAPPINGUTILS_H
15#include "kritapigment_export.h"
31QVector4D KRITAPIGMENT_EXPORT
XYZToOkLab(
const QVector4D &xyz);
32QVector4D KRITAPIGMENT_EXPORT
OkLabToXYZ(
const QVector4D &okLab);
41QVector4D KRITAPIGMENT_EXPORT
XYZToICtCp(
const QVector4D &xyz);
42QVector4D KRITAPIGMENT_EXPORT
ICtCpToXYZ(
const QVector4D &iCtCp);
63QPointF KRITAPIGMENT_EXPORT
cuspForHue(
const QMap<float, QPointF> &gamutCuspDescription,
const float hue);
91 float inverseMaxWhite {1.0};
102 float evalSegment(
const float x);
108 static PiecewiseFilmicCurve fromUserParams(
float toeStrength = 0.5,
float toeLength = 0.5,
float shoulderStrength = 2.0,
float shoulderLength = 0.5,
float shoulderAngle = 1.0);
110 float evalCurve(
const float x);
QVector4D KRITAPIGMENT_EXPORT ICtCpToXYZ(const QVector4D &iCtCp)
float KRITAPIGMENT_EXPORT deltaE76(const QVector< float > &a, const QVector< float > &b)
deltaE76 calculates the difference between two colors, represented as normalized channels.
QVector4D KRITAPIGMENT_EXPORT OkLabToXYZ(const QVector4D &okLab)
QMap< float, QPointF > KRITAPIGMENT_EXPORT getGamutCuspDescription(const KoColorProfile *profile, KoGamutMappingUtils::MappingModel model, const int samplesPerChannel=5)
getGamutCuspDescription Generates a hexagonal gamut cusp description from a RGB or CMYK profile.
QVector4D KRITAPIGMENT_EXPORT XYZToICtCp(const QVector4D &xyz)
XYZToICtCp Ad-hoc implementation of ICtCp for use in filters. Unlike the official YCbCr-compatible st...
MappingModel
The MappingModel enum This represents the preferred model to do gamut and/or tone mapping in.
QVector4D KRITAPIGMENT_EXPORT XYZToOkLab(const QVector4D &xyz)
XYZToOkLab Ad-hoc implementation of OkLAB. This takes a QVector4D and transforms it to the OkLAB mode...
float KRITAPIGMENT_EXPORT reinhardToneMapping(const float linearY, const float maxY)
reinhardToneMapping Implements 'extended' reinhard tonemapping.
QPointF KRITAPIGMENT_EXPORT cuspForHue(const QMap< float, QPointF > &gamutCuspDescription, const float hue)
The piecewiseFilmicCurve class Implement's Hable's piecewise filmic curve. https://filmicworlds....
QVector< Segment > segments