Gamut compression - reduce artifacts resulting from out of gamut (#7205)
* First functions needs for ACES * New file GUI compressgamut * GUI first step * GUI first step * Gui step 2 * GUI procparams and paramsedit * GUI read * GUI step 4 * GUI step 5 * First tooltip * Gamut compression tooltips * Various GUI improvment * History msg * Comment code with Aces remarks * First change improccoordinator and events * Save work on matrix * Compress gamut next work * First try gamut compress * Replace cout by printf in invertmatrix * Change tooltips and events * Added namespace std to iplab2rgb * Comment code * Active rtthumbnail * Change tooltip * Various improvment GUI and rolloff * Added adobeRGB gamut * Appimage windows yml * Remove rttumbnail gamutcompr * Change event to COMPR * Change tooltip and verbose * Restore raw de-haze history message * Refactor ACES gamut compression functions * Fix gamut compression color space history message Correctly display the color space name. * Add "unchanged" for gamut compression color space Allow "unchanged" in batch mode. * Fix gamut compression yellow distance for batch * Update copyright for gamut compression GUI * Fix gamut compression color space names * Refactor gamut compression code * Remove comment rtthumnail.cc - Acesp1 default * Change matrix DCI-P3 - threshold maximum to 1 in GUI and in gamut compression - tooltips * Change tooltip * Clean code - change tooltips * Remove appimage windows yml --------- Co-authored-by: Lawrence Lee <45837045+Lawrence37@users.noreply.github.com>
This commit is contained in:
@@ -858,6 +858,28 @@ struct SHParams {
|
||||
bool operator !=(const SHParams& other) const;
|
||||
};
|
||||
|
||||
/**
|
||||
* Parameters of the compression gamut
|
||||
*/
|
||||
struct CGParams {
|
||||
bool enabled;
|
||||
double th_c;
|
||||
double th_m;
|
||||
double th_y;
|
||||
double d_c;
|
||||
double d_m;
|
||||
double d_y;
|
||||
double pwr;
|
||||
Glib::ustring colorspace;
|
||||
bool rolloff;
|
||||
|
||||
CGParams();
|
||||
|
||||
bool operator ==(const CGParams& other) const;
|
||||
bool operator !=(const CGParams& other) const;
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Tone equalizer parameters.
|
||||
*/
|
||||
@@ -2725,6 +2747,7 @@ public:
|
||||
EPDParams epd; ///< Edge Preserving Decomposition parameters
|
||||
FattalToneMappingParams fattal; ///< Fattal02 tone mapping
|
||||
SHParams sh; ///< Shadow/highlight enhancement parameters
|
||||
CGParams cg; ///< Compression gamut
|
||||
ToneEqualizerParams toneEqualizer; ///< Tone equalizer parameters
|
||||
CropParams crop; ///< Crop parameters
|
||||
CoarseTransformParams coarse; ///< Coarse transformation (90, 180, 270 deg rotation, h/v flipping) parameters
|
||||
|
Reference in New Issue
Block a user