|
Krita Source Code Documentation
|
#include <KoColorimetryUtils.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 KoColorimetryUtils.h.
Definition at line 247 of file KoColorimetryUtils.cpp.
Definition at line 257 of file KoColorimetryUtils.cpp.
Definition at line 262 of file KoColorimetryUtils.cpp.
References KoColorimetryUtils::XYZ::asVector(), blue(), calculateToXYZMatrix(), green(), m_blue, m_fromXYZ, m_green, m_red, m_toXYZ, m_white, KoColorimetryUtils::matrixFromColumns(), red(), and white().
| QMatrix4x4 KoColorimetryUtils::Colorimetry::absoluteColorimetricTo | ( | const Colorimetry & | other | ) | const |
Definition at line 340 of file KoColorimetryUtils.cpp.
| Colorimetry KoColorimetryUtils::Colorimetry::adaptedTo | ( | xyY | newWhitepoint | ) | const |
Definition at line 313 of file KoColorimetryUtils.cpp.
References blue(), chromaticAdaptationMatrix(), KoColorimetryUtils::XYZ::fromVector(), green(), red(), KoColorimetryUtils::xyY::toXYZ(), and white().
| const XYZ & KoColorimetryUtils::Colorimetry::blue | ( | ) | const |
Definition at line 360 of file KoColorimetryUtils.cpp.
References m_blue.
|
static |
Definition at line 188 of file KoColorimetryUtils.cpp.
References KoColorimetryUtils::XYZ::asVector(), blue(), green(), KoColorimetryUtils::matrixFromColumns(), red(), and white().
|
static |
Definition at line 149 of file KoColorimetryUtils.cpp.
References KoColorimetryUtils::XYZ::asVector().
| QMatrix4x4 KoColorimetryUtils::Colorimetry::fromLMS | ( | ) | const |
Definition at line 308 of file KoColorimetryUtils.cpp.
References m_fromXYZ, and KoColorimetryUtils::s_inverseDolbyLMS.
| const QMatrix4x4 & KoColorimetryUtils::Colorimetry::fromXYZ | ( | ) | const |
Definition at line 282 of file KoColorimetryUtils.cpp.
References m_fromXYZ.
| const XYZ & KoColorimetryUtils::Colorimetry::green | ( | ) | const |
Definition at line 355 of file KoColorimetryUtils.cpp.
References m_green.
| Colorimetry KoColorimetryUtils::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 KoColorimetryUtils.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 KoColorimetryUtils.cpp.
checks if the colorimetry is sane and won't cause crashes or glitches
Definition at line 212 of file KoColorimetryUtils.cpp.
References KoColorimetryUtils::XYZ::asVector(), blue(), green(), red(), KoColorimetryUtils::triangleArea(), and white().
| bool KoColorimetryUtils::Colorimetry::operator== | ( | const Colorimetry & | other | ) | const |
| const XYZ & KoColorimetryUtils::Colorimetry::red | ( | ) | const |
Definition at line 350 of file KoColorimetryUtils.cpp.
References m_red.
| QMatrix4x4 KoColorimetryUtils::Colorimetry::relativeColorimetricTo | ( | const Colorimetry & | other | ) | const |
Definition at line 335 of file KoColorimetryUtils.cpp.
References chromaticAdaptationMatrix(), fromXYZ(), toXYZ(), and white().
| QMatrix4x4 KoColorimetryUtils::Colorimetry::toLMS | ( | ) | const |
Definition at line 303 of file KoColorimetryUtils.cpp.
References m_toXYZ, and KoColorimetryUtils::s_xyzToDolbyLMS.
| const QMatrix4x4 & KoColorimetryUtils::Colorimetry::toXYZ | ( | ) | const |
Definition at line 277 of file KoColorimetryUtils.cpp.
References m_toXYZ.
| const XYZ & KoColorimetryUtils::Colorimetry::white | ( | ) | const |
Definition at line 365 of file KoColorimetryUtils.cpp.
References m_white.
| Colorimetry KoColorimetryUtils::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 KoColorimetryUtils.cpp.
References m_blue, m_green, m_red, KoColorimetryUtils::xyY::toXYZ(), and KoColorimetryUtils::xyY::Y.
|
static |
Definition at line 82 of file KoColorimetryUtils.h.
|
static |
Definition at line 78 of file KoColorimetryUtils.h.
|
static |
Definition at line 73 of file KoColorimetryUtils.h.
|
static |
Definition at line 79 of file KoColorimetryUtils.h.
|
static |
Definition at line 80 of file KoColorimetryUtils.h.
|
static |
Definition at line 81 of file KoColorimetryUtils.h.
|
static |
Definition at line 77 of file KoColorimetryUtils.h.
|
private |
Definition at line 141 of file KoColorimetryUtils.h.
|
private |
Definition at line 144 of file KoColorimetryUtils.h.
|
private |
Definition at line 140 of file KoColorimetryUtils.h.
|
private |
Definition at line 139 of file KoColorimetryUtils.h.
|
private |
Definition at line 143 of file KoColorimetryUtils.h.
|
private |
Definition at line 142 of file KoColorimetryUtils.h.
|
static |
Definition at line 76 of file KoColorimetryUtils.h.
|
static |
Definition at line 75 of file KoColorimetryUtils.h.
|
static |
Definition at line 74 of file KoColorimetryUtils.h.