|
Krita Source Code Documentation
|
Classes | |
| struct | PiecewiseFilmicCurve |
| The piecewiseFilmicCurve class Implement's Hable's piecewise filmic curve. https://filmicworlds.com/blog/filmic-tonemapping-with-piecewise-power-curves/ License: CC-0. More... | |
Enumerations | |
| enum | CurveType { Reinhard , PiecewiseFilmic } |
| enum | MappingModel { LAB , ICtCp , OkLAB } |
| The MappingModel enum This represents the preferred model to do gamut and/or tone mapping in. More... | |
Functions | |
| QPointF KRITAPIGMENT_EXPORT | cuspForHue (const QMap< float, QPointF > &gamutCuspDescription, const float hue) |
| float KRITAPIGMENT_EXPORT | deltaE76 (const QVector< float > &a, const QVector< float > &b) |
| deltaE76 calculates the difference between two colors, represented as normalized channels. | |
| 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 | ICtCpToXYZ (const QVector4D &iCtCp) |
| QVector4D KRITAPIGMENT_EXPORT | OkLabToXYZ (const QVector4D &okLab) |
| float KRITAPIGMENT_EXPORT | reinhardToneMapping (const float linearY, const float maxY) |
| reinhardToneMapping Implements 'extended' reinhard tonemapping. | |
| QVector4D KRITAPIGMENT_EXPORT | XYZToICtCp (const QVector4D &xyz) |
| XYZToICtCp Ad-hoc implementation of ICtCp for use in filters. Unlike the official YCbCr-compatible standard, this one doesn't have a 0.5 offset in the Ct and Cp channels. | |
| QVector4D KRITAPIGMENT_EXPORT | XYZToOkLab (const QVector4D &xyz) |
| XYZToOkLab Ad-hoc implementation of OkLAB. This takes a QVector4D and transforms it to the OkLAB model. | |
| Enumerator | |
|---|---|
| Reinhard | |
| PiecewiseFilmic | |
Definition at line 66 of file KoGamutMappingUtils.h.
The MappingModel enum This represents the preferred model to do gamut and/or tone mapping in.
Here to keep the filter and the transform in sync.
| Enumerator | |
|---|---|
| LAB | |
| ICtCp | |
| OkLAB | |
Definition at line 50 of file KoGamutMappingUtils.h.
| QPointF KoGamutMappingUtils::cuspForHue | ( | const QMap< float, QPointF > & | gamutCuspDescription, |
| const float | hue ) |
Definition at line 339 of file KoGamutMappingUtils.cpp.
deltaE76 calculates the difference between two colors, represented as normalized channels.
Definition at line 17 of file KoGamutMappingUtils.cpp.
| QMap< float, QPointF > KoGamutMappingUtils::getGamutCuspDescription | ( | const KoColorProfile * | profile, |
| KoGamutMappingUtils::MappingModel | model, | ||
| const int | samplesPerChannel = 5 ) |
getGamutCuspDescription Generates a hexagonal gamut cusp description from a RGB or CMYK profile.
| profile | cmyk or RGB profile to use. |
Definition at line 249 of file KoGamutMappingUtils.cpp.
References KoColorConversionTransformation::adjustmentConversionFlags(), bounds, KoColorSpace::channelCount(), CMYKAColorModelID, KoColorProfile::colorModelID(), KoColorSpaceRegistry::colorSpace(), KoColorSpace::convertPixelsTo(), KoColor::data(), Float32BitsColorDepthID, KoColorSpace::fromNormalisedChannelsValue(), ICtCp, KoID::id(), KoColorSpaceRegistry::instance(), Integer8BitsColorDepthID, KoColorConversionTransformation::IntentRelativeColorimetric, LAB, LABAColorModelID, LabToLCH(), KoColorSpace::normalisedChannelsValue(), RGBAColorModelID, XYZAColorModelID, XYZToICtCp(), and XYZToOkLab().
| QVector4D KoGamutMappingUtils::ICtCpToXYZ | ( | const QVector4D & | iCtCp | ) |
Definition at line 240 of file KoGamutMappingUtils.cpp.
References lmsToICtCp_inv, removeSmpte2048Curve(), xyz50To65_inv, and XYZd65toDolbyLMS_inv.
| QVector4D KoGamutMappingUtils::OkLabToXYZ | ( | const QVector4D & | okLab | ) |
Definition at line 221 of file KoGamutMappingUtils.cpp.
References lmsToOkLab_inv, xyz50To65_inv, and XYZtoOkLABLMS_inv.
| float KoGamutMappingUtils::reinhardToneMapping | ( | const float | linearY, |
| const float | maxY ) |
reinhardToneMapping Implements 'extended' reinhard tonemapping.
| linearY | – luminance, linear. |
| maxWhite | – maximum white to scale down, also linear |
Definition at line 25 of file KoGamutMappingUtils.cpp.
| QVector4D KoGamutMappingUtils::XYZToICtCp | ( | const QVector4D & | xyz | ) |
XYZToICtCp Ad-hoc implementation of ICtCp for use in filters. Unlike the official YCbCr-compatible standard, this one doesn't have a 0.5 offset in the Ct and Cp channels.
| xyz |
Definition at line 229 of file KoGamutMappingUtils.cpp.
References applySmpte2048Curve(), lmsToICtCp, xyz50To65, and XYZd65toDolbyLMS.
| QVector4D KoGamutMappingUtils::XYZToOkLab | ( | const QVector4D & | xyz | ) |
XYZToOkLab Ad-hoc implementation of OkLAB. This takes a QVector4D and transforms it to the OkLAB model.
| xyz |
Definition at line 211 of file KoGamutMappingUtils.cpp.
References lmsToOkLab, xyz50To65, and XYZtoOkLABLMS.