|
Krita Source Code Documentation
|
#include <KisColorimetryUtils.h>
Public Member Functions | |
| QMatrix4x4 | absoluteColorimetricTo (const Colorimetry &other) const |
| Colorimetry | adaptedTo (xyY newWhitepoint) const |
| const XYZ & | blue () const |
| Colorimetry (xy red, xy green, xy blue, xy white) | |
| Colorimetry (xyY red, xyY green, xyY blue, xyY white) | |
| Colorimetry (XYZ red, XYZ green, XYZ blue, XYZ white) | |
| QMatrix4x4 | fromLMS () const |
| const QMatrix4x4 & | fromXYZ () const |
| const XYZ & | green () const |
| Colorimetry | interpolateGamutTo (const Colorimetry &one, double factor) const |
| bool | operator== (const Colorimetry &other) const |
| const XYZ & | red () const |
| QMatrix4x4 | relativeColorimetricTo (const Colorimetry &other) const |
| QMatrix4x4 | toLMS () const |
| const QMatrix4x4 & | toXYZ () const |
| const XYZ & | white () const |
| Colorimetry | withWhitepoint (xyY newWhitePoint) const |
Static Public Member Functions | |
| static QMatrix4x4 | calculateToXYZMatrix (XYZ red, XYZ green, XYZ blue, XYZ white) |
| static QMatrix4x4 | chromaticAdaptationMatrix (XYZ sourceWhitepoint, XYZ destinationWhitepoint) |
| static bool | isReal (xy red, xy green, xy blue, xy white) |
| static bool | isValid (xy red, xy green, xy blue, xy white) |
Static Public Attributes | |
| static const Colorimetry | AdobeRGB |
| static const Colorimetry | BT2020 |
| static const Colorimetry | BT709 |
| static const Colorimetry | CIEXYZ |
| static const Colorimetry | DCIP3 |
| static const Colorimetry | DisplayP3 |
| static const Colorimetry | GenericFilm |
| static const Colorimetry | NTSC |
| static const Colorimetry | PAL |
| static const Colorimetry | PAL_M |
Private Attributes | |
| XYZ | m_blue |
| QMatrix4x4 | m_fromXYZ |
| XYZ | m_green |
| XYZ | m_red |
| QMatrix4x4 | m_toXYZ |
| XYZ | m_white |
Describes the definition of colors in a color space. Red, green and blue define the chromaticities ("absolute colors") of the red, green and blue LEDs on a display in xy coordinates White defines the the chromaticity of the reference white in xy coordinates
Definition at line 70 of file KisColorimetryUtils.h.
Definition at line 247 of file KisColorimetryUtils.cpp.
Definition at line 257 of file KisColorimetryUtils.cpp.
Definition at line 262 of file KisColorimetryUtils.cpp.
References KisColorimetryUtils::XYZ::asVector(), blue(), calculateToXYZMatrix(), green(), m_blue, m_fromXYZ, m_green, m_red, m_toXYZ, m_white, KisColorimetryUtils::matrixFromColumns(), red(), and white().
| QMatrix4x4 KisColorimetryUtils::Colorimetry::absoluteColorimetricTo | ( | const Colorimetry & | other | ) | const |
Definition at line 340 of file KisColorimetryUtils.cpp.
| Colorimetry KisColorimetryUtils::Colorimetry::adaptedTo | ( | xyY | newWhitepoint | ) | const |
Definition at line 313 of file KisColorimetryUtils.cpp.
References blue(), chromaticAdaptationMatrix(), KisColorimetryUtils::XYZ::fromVector(), green(), red(), KisColorimetryUtils::xyY::toXYZ(), and white().
| const XYZ & KisColorimetryUtils::Colorimetry::blue | ( | ) | const |
Definition at line 360 of file KisColorimetryUtils.cpp.
References m_blue.
|
static |
Definition at line 188 of file KisColorimetryUtils.cpp.
References KisColorimetryUtils::XYZ::asVector(), blue(), green(), KisColorimetryUtils::matrixFromColumns(), red(), and white().
|
static |
Definition at line 149 of file KisColorimetryUtils.cpp.
References KisColorimetryUtils::XYZ::asVector().
| QMatrix4x4 KisColorimetryUtils::Colorimetry::fromLMS | ( | ) | const |
Definition at line 308 of file KisColorimetryUtils.cpp.
References m_fromXYZ, and KisColorimetryUtils::s_inverseDolbyLMS.
| const QMatrix4x4 & KisColorimetryUtils::Colorimetry::fromXYZ | ( | ) | const |
Definition at line 282 of file KisColorimetryUtils.cpp.
References m_fromXYZ.
| const XYZ & KisColorimetryUtils::Colorimetry::green | ( | ) | const |
Definition at line 355 of file KisColorimetryUtils.cpp.
References m_green.
| Colorimetry KisColorimetryUtils::Colorimetry::interpolateGamutTo | ( | const Colorimetry & | one, |
| double | factor ) const |
interpolates the primaries depending on the passed factor. The whitepoint stays unchanged
Definition at line 197 of file KisColorimetryUtils.cpp.
References blue(), green(), m_blue, m_green, m_red, m_white, and red().
checks if the colorimetry could be from a real display
Definition at line 233 of file KisColorimetryUtils.cpp.
checks if the colorimetry is sane and won't cause crashes or glitches
Definition at line 212 of file KisColorimetryUtils.cpp.
References KisColorimetryUtils::XYZ::asVector(), blue(), green(), red(), KisColorimetryUtils::triangleArea(), and white().
| bool KisColorimetryUtils::Colorimetry::operator== | ( | const Colorimetry & | other | ) | const |
| const XYZ & KisColorimetryUtils::Colorimetry::red | ( | ) | const |
Definition at line 350 of file KisColorimetryUtils.cpp.
References m_red.
| QMatrix4x4 KisColorimetryUtils::Colorimetry::relativeColorimetricTo | ( | const Colorimetry & | other | ) | const |
Definition at line 335 of file KisColorimetryUtils.cpp.
References chromaticAdaptationMatrix(), fromXYZ(), toXYZ(), and white().
| QMatrix4x4 KisColorimetryUtils::Colorimetry::toLMS | ( | ) | const |
Definition at line 303 of file KisColorimetryUtils.cpp.
References m_toXYZ, and KisColorimetryUtils::s_xyzToDolbyLMS.
| const QMatrix4x4 & KisColorimetryUtils::Colorimetry::toXYZ | ( | ) | const |
Definition at line 277 of file KisColorimetryUtils.cpp.
References m_toXYZ.
| const XYZ & KisColorimetryUtils::Colorimetry::white | ( | ) | const |
Definition at line 365 of file KisColorimetryUtils.cpp.
References m_white.
| Colorimetry KisColorimetryUtils::Colorimetry::withWhitepoint | ( | xyY | newWhitePoint | ) | const |
replaces the current whitepoint with the new one this does not do whitepoint adaptation!
Definition at line 324 of file KisColorimetryUtils.cpp.
References m_blue, m_green, m_red, KisColorimetryUtils::xyY::toXYZ(), and KisColorimetryUtils::xyY::Y.
|
static |
Definition at line 82 of file KisColorimetryUtils.h.
|
static |
Definition at line 78 of file KisColorimetryUtils.h.
|
static |
Definition at line 73 of file KisColorimetryUtils.h.
|
static |
Definition at line 79 of file KisColorimetryUtils.h.
|
static |
Definition at line 80 of file KisColorimetryUtils.h.
|
static |
Definition at line 81 of file KisColorimetryUtils.h.
|
static |
Definition at line 77 of file KisColorimetryUtils.h.
|
private |
Definition at line 141 of file KisColorimetryUtils.h.
|
private |
Definition at line 144 of file KisColorimetryUtils.h.
|
private |
Definition at line 140 of file KisColorimetryUtils.h.
|
private |
Definition at line 139 of file KisColorimetryUtils.h.
|
private |
Definition at line 143 of file KisColorimetryUtils.h.
|
private |
Definition at line 142 of file KisColorimetryUtils.h.
|
static |
Definition at line 76 of file KisColorimetryUtils.h.
|
static |
Definition at line 75 of file KisColorimetryUtils.h.
|
static |
Definition at line 74 of file KisColorimetryUtils.h.