Revert "Generalized Hyperbolic Stretch in Selective Editing (#7210)" (#7250)

This reverts commit 16db6186dd.
This commit is contained in:
Desmis
2024-11-14 10:29:29 +01:00
committed by GitHub
parent 16db6186dd
commit 691fe80896
33 changed files with 255 additions and 2765 deletions

View File

@@ -1522,25 +1522,11 @@ HISTORY_MSG_LOCAL_FEATHERSH;Local - SH Gradient feather
HISTORY_MSG_LOCAL_FEATHERVIB;Local - Vib Gradient feather
HISTORY_MSG_LOCAL_FEATHERWAV;Local - Wav Gradient feather
HISTORY_MSG_LOCAL_GAMUTMUNSEL;Local - SC - Avoid Color Shift
HISTORY_MSG_LOCAL_GHSMETHOD;Local - GHS - Method
HISTORY_MSG_LOCAL_GHS_D;Local - GHS - Strech factor
HISTORY_MSG_LOCAL_GHS_SLOPE;Local - GHS - Lab slope factor
HISTORY_MSG_LOCAL_GHS_CHRO;Local - GHS - Lab chromaticity factor
HISTORY_MSG_LOCAL_GHS_B;Local - GHS - Local intensity
HISTORY_MSG_LOCAL_GHS_SP;Local - GHS - Symmetry point
HISTORY_MSG_LOCAL_GHS_LP;Local - GHS - Protect shadows
HISTORY_MSG_LOCAL_GHS_HP;Local - GHS - Protect highlights
HISTORY_MSG_LOCAL_GHS_LC;Local - GHS - Local Contrast
HISTORY_MSG_LOCAL_GHS_BLP;Local - GHS - Black point
HISTORY_MSG_LOCAL_GHS_HLP;Local - GHS - White point
HISTORY_MSG_LOCAL_GHS_INV;Local - GHS - Inverse
HISTORY_MSG_LOCAL_GHS_SMOOTH;Local - GHS - Highlight Attenuation
HISTORY_MSG_LOCAL_LOG_BLACKS;Local - Log Blacks distribution
HISTORY_MSG_LOCAL_LOG_COMPR;Local - Log Compress brightness
HISTORY_MSG_LOCAL_LOG_SAT;Local - Log Saturation control
HISTORY_MSG_LOCAL_LOG_WHITES;Local - Log Whites distribution
HISTORY_MSG_LOCAL_TMO_SATUR;Local Exp Fattal Saturation
HISTORY_MSG_LOCAL_NLITER;Local - Nlmeans - Iterations
HISTORY_MSG_METADATA_MODE;Metadata copy mode
HISTORY_MSG_MICROCONTRAST_CONTRAST;Microcontrast - Contrast threshold
HISTORY_MSG_PDSHARPEN_AUTO_CONTRAST;CS - Auto threshold
@@ -3147,49 +3133,6 @@ TP_LOCALLAB_GAMUTNON;None
TP_LOCALLAB_GAMUTXYZABSO;XYZ Absolute
TP_LOCALLAB_GAMUTXYZRELA;XYZ Relative
TP_LOCALLAB_GAMW;Gamma (wavelet pyramids)
TP_LOCALLAB_GHSBPWP;Clipped Black point=%1 White point=%2
TP_LOCALLAB_GHSBPWPVALUE;Value Black point=%1 White point=%2
TP_LOCALLAB_GHS_GHSDIAG;GHS Simulation
TP_LOCALLAB_GHS_SIMUL_TOOLTIP;Gives a simplified representation of the GHS function - it only uses 7 points for the sake of code simplification.
TP_LOCALLAB_GHSRGBLUM;RGB Luminance
TP_LOCALLAB_GHSRGBSTD;RGB Standard
TP_LOCALLAB_GHSLAB;Luminance & chromaticity (Lab)
TP_LOCALLAB_GHSHUE;Hue (HSL)
TP_LOCALLAB_GHSLUM;Luminance (HSL)
TP_LOCALLAB_GHSSAT;Saturation (HSL)
TP_LOCALLAB_GHSFRA;Stretch settings
TP_LOCALLAB_GHS_D;Stretch factor (D)
TP_LOCALLAB_GHS_B;Local intensity (b)
TP_LOCALLAB_GHS_SP;Symmetry point (SP)
TP_LOCALLAB_GHS_LP;Protect shadows (LP)
TP_LOCALLAB_GHS_HP;Protect highlights (HP)
TP_LOCALLAB_GHS_LC;Value (LC)
TP_LOCALLAB_GHS_LC_FRAME;Stetch Regularization
TP_LOCALLAB_GHS_LC_TOOLTIP;Slightly increases local contrast that was weakened by stretching.\nCan be completed by other tools specific to local contrast (wavelets,...).
TP_LOCALLAB_GHS_BLACKPOINT_FRAME;Black point/White point/Highlights
TP_LOCALLAB_GHS_BPFRAME_TOOLTIP;Sets the Black point, White point and Highlight for a linear stretch of the image.
TP_LOCALLAB_GHS_BLP;Black point (BP linear)
TP_LOCALLAB_GHS_BLP_TOOLTIP;Sets the Black point for a linear stretch of the image.\n For positive slider values, in GHS normal, shadows are raised linearly to avoid excessive noise build-up and facilitate GHS work.\n For negative slider values, the histogram is shifted to the left. For Raw images you can also use Raw-Tab > Raw Black Points Dehaze, which is more precise. Contrast gained by performing the linear stretch will be evenly distributed over the image.\n\nYou can adjust a linear black point offset either:\n -to account for noise in the dark parts.\n -adjust the histogram.\n\n It is recommended to act on this sliders before implementing the GHS algorithm to avoid clipping data.\n The label 'Clipped Black point=x White point=y' shows you the number of pixels that would be clipped without action on the 2 sliders.\n\nIn Inverse GHS mode the trends are differents and there are possible interactions with the White point.
TP_LOCALLAB_GHS_HLP;White point (WP linear)
TP_LOCALLAB_GHS_METHOD_TOOLTIP;The Generalized Hyperbolic Stretch (GHS) process allows you to transform the values of pixels in your image to improve the representation of the underlying data for human visualisation. \nThe generalised hyperbolic equations used in the GHS process have five defining parameters. This allows significant flexibility in designing the "shape" of the transformation.\n\nTypical uses of pixel intensity transformations include:\n * Initial stretch of pixel data from linear state.\n * Addition of contrast to key areas of the image.\n * Overall brightening or darkening of the image.\n * Adjustment of the dynamic range of the image.\n * Adjustment of pixel data in RGB Luminance, RGB standard, Luminance - chromaticity (Lab/Lch), Luminance (hsv), Saturation (hsv), Hue (hsv), channels.\n\nFor a better treatment, you can proceed in several steps, creating 2 or more RT-spots each superimposed with the GHS tool. For each of the RT-Spots, the Symmetry point (SP) base value will be different. Use the peak marker on the histogram to position the SP value.\n For example, you can start the system in RGB mode (1st Spot), then the 2nd Spot in RGB mode with a different SP, and the 3rd in Saturation or Hue mode.\n You can mix RT-spots in 'Normal' mode and 'Inverse' mode to restore contrast balance.\n Full Image allows you to differentiate the action according to the color based on the deltaE.
TP_LOCALLAB_GHS_HLP_TOOLTIP;Sets the White point for a linear stretch of the image. Any pixel with value greater than the White point input will be clipped and the data lost.\n Contrast gained by performing the linear stretch will be evenly distributed over the image, which will be brightened. Pixels with values greater than the Whitepoint will appear white and have a value of 1.0.\n Setting this parameter to a value greater than 1 will extend the dynamic range at the high end.\n It is recommended to act on this slider before implementing the GHS algorithm to avoid clipping data.\n The label 'Clipped Black point=x White point=y' shows you the number of pixels that would be clipped without action on the 2 sliders.\n\nIn Inverse GHS mode the trends are reversed and there are possible interactions with the Black point.
TP_LOCALLAB_GHS_MODELIN;Linear
TP_LOCALLAB_GHS_MODECUR;GHS
TP_LOCALLAB_GHS_D_TOOLTIP;This parameter controls the amount of stretch. If the Stretch factor is set to zero there is no stretch, ie the transformation is the identity transformation.
TP_LOCALLAB_GHS_B_TOOLTIP;This parameter controls how tightly focused the stretch is around the Symmetry point (SP) by changing the form of the transform itself:\n * For concentrated stretches (such as initial stretches on linear images) a large 'b' factor should be employed to focus a stretch within a histogram peak while de-focusing the stretch away from the histogram peak.\n * For adjustment of non-linear images, lower 'b' parameters should be employed to distribute contrast and brightness more evenly.\n * Large positive values of 'b' can be thought of as a histogram widener, ie spreading the histogram wider about the focus point, SP.\n * By contrast, lower values of 'b' tend to shift the histogram to a brighter (or dimmer) position without affecting its width too greatly.\n * As a general rule, the level of 'b' employed will decrease as a stretch sequence nears completion, although larger 'b' values can still be employed for precise placement of additional contrast.
TP_LOCALLAB_GHS_SLOPE;Slope Lab factor (S)
TP_LOCALLAB_GHS_SLOPE_TOOLTIP;Changes the slope of the Lab transform to improve shadow rendering.
TP_LOCALLAB_GHS_CHRO;Chromaticity Lab factor (C)
TP_LOCALLAB_GHS_CHRO_TOOLTIP;GHS chromaticity - compensate large stretches
TP_LOCALLAB_GHSLABFRA;Lab settings
TP_LOCALLAB_GHS_SP_TOOLTIP;Default 0.03 to avoid the zero value which can never be suitable. For exposure balanced images, a value of 0.18 will likely be suitable.\n This is the key balance value of the GHS system.\nSets the focus point around which the stretch is applied - contrast will be distributed symmetrically about SP.\n While 'b' provides the degree of focus of the stretch, SP determines where that focus is applied.\n SP should generally be placed within a histogram peak so that the stretch will widen and lower the peak by adding the most contrast in the stretch at that point. Pixel values will move away from the SP location.
TP_LOCALLAB_GHS_LP_TOOLTIP;Sets a value below which the stretch is modified to preserve contrast in the shadows/lowlights. This is done by performing a linear stretch of the data below the 'LP' level by reserving contrast from the rest of the image. Moving the LP level towards the current setting of SP changes both the scope (range) and the amount of this contrast reservation, the net effect is to push the overal stretch to higher brightness levels while keeping the contrast and definition in the background. The amount of contrast reserved for the lowlights is such that the continuity of the stretch is preserved.\n This parameter must be greater than or equal to 0 and not greater than the Symmetry point.\n The GUI - and the code - takes into account the value of the Symmetry Point (SP) to set the maximum value.
TP_LOCALLAB_GHS_HP_TOOLTIP;Sets a value above which the stretch is modified to preserve contrast in the highlights/stars. This is done by performing a linear stretch of the data above the 'HP' level by reserving contrast from the rest of the image. Moving the HP level towards the current setting of SP increases both the scope (range) and the amount of this contrast reservation, the net effect is to push the overal stretch to lower brightness levels while keeping the contrast and definition in the highlights. The amount of contrast reserved for the highlights is such that the continuity of the stretch is preserved.\n This parameter must be less than or equal to 1 and not less than the Symmetry point.\n The GUI - and the code - takes into account the value of the Symmetry Point (SP) to set the minimum value.
TP_LOCALLAB_GHS_SMOOTH_TOOLTIP;Smooth and soften highlight areas. Amplifies 'Protect highlights (HP)' action.
TP_LOCALLAB_GHS_SMOOTH;Highlight Attenuation
TP_LOCALLAB_GHS_CURVE_TOOLTIP;Shows the 'S' curve generated by GHS calculations. Mainly for educational purposes.\n\n * You cannot modify this 'GHS curve' via the GUI (mouse,..).
TP_LOCALLAB_GHS_INV;Inverse GHS
TP_LOCALLAB_GHS_INV_TOOLTIP;The inverse GHS is useful for working in negative space. Inverted transform add contrast on the far right and left histogram, brighten the dims, dim the brights and squeez the histogram to the middle.\n\nThe Generalised Hyperbolic inverse transformation allows you to recover your original image subject to mathematical precision. But you can use it for its own features.\n\nIn 'Inverse GHS' mode, the White Point and Black point values will probably need to be changed - often lowered for White Point. There is interaction between the two settings.
TP_LOCALLAB_GRADANG;Gradient angle
TP_LOCALLAB_GRADANG_TOOLTIP;Rotation angle in degrees: -180 0 +180.
TP_LOCALLAB_GRADFRA;Graduated Filter Mask
@@ -3451,7 +3394,6 @@ TP_LOCALLAB_MRONE;None
TP_LOCALLAB_MRTHR;Original Image
TP_LOCALLAB_MULTIPL_TOOLTIP;Wide-range tone adjustment: -18EV to +4EV. The first slider acts on very dark tones between -18EV and -6EV. The last slider acts on light tones up to 4EV.
TP_LOCALLAB_NEIGH;Radius
TP_LOCALLAB_NLDENOISENLITER_TOOLTIP;Run multiple iterations of Nlmeans. Results are often better with multiple iterations and low Strength.
TP_LOCALLAB_NLDENOISENLGAM_TOOLTIP;Lower values preserve details and texture, higher values increase denoise.\nIf gamma = 3.0 Luminance 'linear' is used.
TP_LOCALLAB_NLDENOISENLPAT_TOOLTIP;Use this slider to adapt the amount of denoise to the size of the objects to be processed.
TP_LOCALLAB_NLDENOISENLRAD_TOOLTIP;Higher values increase denoise at the expense of processing time.
@@ -3460,7 +3402,6 @@ TP_LOCALLAB_NLDET;Detail recovery
TP_LOCALLAB_NLFRA;Non-local Means: Luminance
TP_LOCALLAB_NLFRAME_TOOLTIP;Non-local means denoising takes a mean of all pixels in the image, weighted by how similar they are to the target pixel.\nReduces loss of detail compared with local mean algorithms.\nOnly luminance noise is taken into account. Chrominance noise is best processed using wavelets and Fourier transforms (DCT).\nCan be used in conjunction with 'Luminance denoise by level' or on its own.
TP_LOCALLAB_NLGAM;Gamma
TP_LOCALLAB_NLITER;Iterations
TP_LOCALLAB_NLLUM;Strength
TP_LOCALLAB_NLPAT;Maximum patch size
TP_LOCALLAB_NLRAD;Maximum radius size
@@ -3562,10 +3503,9 @@ TP_LOCALLAB_SENSI_TOOLTIP;Adjusts the scope of the action:\nSmall values limit t
TP_LOCALLAB_SETTINGS;Settings
TP_LOCALLAB_SH1;Shadows Highlights
TP_LOCALLAB_SH2;Equalizer
TP_LOCALLAB_SH3;Generalized Hyperbolic Stretch
TP_LOCALLAB_SHADEX;Shadows
TP_LOCALLAB_SHADEXCOMP;Shadow compression
TP_LOCALLAB_SHADHIGH;Shadows/Highlights, Equalizer & GHS
TP_LOCALLAB_SHADHIGH;Shadows/Highlights & Tone Equalizer
TP_LOCALLAB_SHADHMASK_TOOLTIP;Lowers the highlights of the mask in the same way as the shadows/highlights algorithm.
TP_LOCALLAB_SHADMASK_TOOLTIP;Lifts the shadows of the mask in the same way as the shadows/highlights algorithm.
TP_LOCALLAB_SHADOWHIGHLIGHT_TOOLTIP;Adjust shadows and highlights either with shadows & highlights sliders or with a tone equalizer.\nCan be used instead of, or in conjunction with the Exposure module.\nCan also be used as a graduated filter.
@@ -3613,7 +3553,7 @@ TP_LOCALLAB_SHOWT;Mask and modifications
TP_LOCALLAB_SHOWVI;Mask and modifications
TP_LOCALLAB_SHRESFRA;Shadows/Highlights & TRC
TP_LOCALLAB_SHTRC_TOOLTIP;Based on 'working profile' (only those provided), modifies the tones of the image by acting on a TRC (Tone Response Curve).\nGamma acts mainly on light tones.\nSlope acts mainly on dark tones.\nIt is recommended that the TRC of both devices (monitor and output profile) be sRGB (default).
TP_LOCALLAB_SH_TOOLNAME;Shadows/Highlights & Equalizer & GHS
TP_LOCALLAB_SH_TOOLNAME;Shadows/Highlights & Tone Equalizer
TP_LOCALLAB_SIGBLACKSSCIE;Blacks distribution
TP_LOCALLAB_SIGCIE;Sigmoid
TP_LOCALLAB_SIGFRA;Sigmoid Q