|
Krita Source Code Documentation
|
The piecewiseFilmicCurve class Implement's Hable's piecewise filmic curve. https://filmicworlds.com/blog/filmic-tonemapping-with-piecewise-power-curves/ License: CC-0. More...
#include <KoGamutMappingUtils.h>
Classes | |
| struct | Segment |
Public Member Functions | |
| float | evalCurve (const float x) |
| PiecewiseFilmicCurve (float maxWhite, QPointF point0, QPointF point1, QPointF overshootPoint) | |
Static Public Member Functions | |
| static PiecewiseFilmicCurve | fromUserParams (float toeStrength=0.5, float toeLength=0.5, float shoulderStrength=2.0, float shoulderLength=0.5, float shoulderAngle=1.0) |
Public Attributes | |
| float | inverseMaxWhite {1.0} |
| QPointF | p0 |
| QPointF | p1 |
| QVector< Segment > | segments |
The piecewiseFilmicCurve class Implement's Hable's piecewise filmic curve. https://filmicworlds.com/blog/filmic-tonemapping-with-piecewise-power-curves/ License: CC-0.
Definition at line 86 of file KoGamutMappingUtils.h.
| KoGamutMappingUtils::PiecewiseFilmicCurve::PiecewiseFilmicCurve | ( | float | maxWhite, |
| QPointF | point0, | ||
| QPointF | point1, | ||
| QPointF | overshootPoint ) |
Definition at line 57 of file KoGamutMappingUtils.cpp.
References AsSlopeIntercept(), KoGamutMappingUtils::PiecewiseFilmicCurve::Segment::b, EvalDerivativeLinearGamma(), KoGamutMappingUtils::PiecewiseFilmicCurve::Segment::evalSegment(), inverseMaxWhite, KoGamutMappingUtils::PiecewiseFilmicCurve::Segment::lnA, KoGamutMappingUtils::PiecewiseFilmicCurve::Segment::offsetX, KoGamutMappingUtils::PiecewiseFilmicCurve::Segment::offsetY, p0, p1, KoGamutMappingUtils::PiecewiseFilmicCurve::Segment::scaleX, KoGamutMappingUtils::PiecewiseFilmicCurve::Segment::scaleY, segments, and SolveAB().
| float KoGamutMappingUtils::PiecewiseFilmicCurve::evalCurve | ( | const float | x | ) |
Definition at line 120 of file KoGamutMappingUtils.cpp.
References KoGamutMappingUtils::PiecewiseFilmicCurve::Segment::evalSegment(), p0, and p1.
|
static |
Definition at line 134 of file KoGamutMappingUtils.cpp.
| float KoGamutMappingUtils::PiecewiseFilmicCurve::inverseMaxWhite {1.0} |
Definition at line 91 of file KoGamutMappingUtils.h.
| QPointF KoGamutMappingUtils::PiecewiseFilmicCurve::p0 |
Definition at line 88 of file KoGamutMappingUtils.h.
| QPointF KoGamutMappingUtils::PiecewiseFilmicCurve::p1 |
Definition at line 89 of file KoGamutMappingUtils.h.
Definition at line 105 of file KoGamutMappingUtils.h.