|
Krita Source Code Documentation
|
The KisGamutMapClipAdjustment class. More...
#include <kis_gamutmap_clip_adjustment.h>
Inheritance diagram for KisGamutMapClipAdjustmentFactory:Public Member Functions | |
| KoColorTransformation * | createTransformation (const KoColorSpace *colorSpace, QHash< QString, QVariant > parameters) const override |
| KisGamutMapClipAdjustmentFactory () | |
| QList< QPair< KoID, KoID > > | supportedModels () const override |
Public Member Functions inherited from KoColorTransformationFactory | |
| QString | id () const |
| KoColorTransformationFactory (const QString &id) | |
| virtual | ~KoColorTransformationFactory () |
Public Member Functions inherited from Private | |
| Private (KisCanvas2 *c) | |
Additional Inherited Members | |
Public Attributes inherited from KoColorTransformationFactory | |
| QString | id |
Public Attributes inherited from Private | |
| KisCanvas2 * | canvas |
| int | displayedFrame |
| int | intendedFrame |
The KisGamutMapClipAdjustment class.
Normally, in the ICC workflow, a profile is supossed to handle any kind of gamut mapping. This includes dealing with clipping values that are out of gamut.
This KoColorTransformation takes colors, converts them to an opponent space, like Lab or ICtCp, and then desaturates the colors until they are inside the target color gamut.
There's more complex gamut mapping algorithms available, but this particular transform focuses on simplicity and speed.
Definition at line 27 of file kis_gamutmap_clip_adjustment.h.
| KisGamutMapClipAdjustmentFactory::KisGamutMapClipAdjustmentFactory | ( | ) |
Definition at line 266 of file kis_gamutmap_clip_adjustment.cpp.
|
overridevirtual |
Implements KoColorTransformationFactory.
Definition at line 286 of file kis_gamutmap_clip_adjustment.cpp.
References KoColorSpace::colorModelId(), dbgKrita, KoColorSpace::id, LABAColorModelID, KoGamutMappingUtils::OkLAB, KoColorTransformation::setParameters(), XYZAColorModelID, and YCbCrAColorModelID.
|
overridevirtual |
Implements KoColorTransformationFactory.
Definition at line 272 of file kis_gamutmap_clip_adjustment.cpp.
References Float32BitsColorDepthID, LABAColorModelID, XYZAColorModelID, and YCbCrAColorModelID.