Author: post
Date: 2009-07-13 17:02:45 +0200 (Mon, 13 Jul 2009)
New Revision: 2591

Modified:
   trunk/plugins/denoise/denoise.c
Log:
Denoise: Removed less sharpening/denoise on higher exposure compensation, and 
adjusted strength.

Modified: trunk/plugins/denoise/denoise.c
===================================================================
--- trunk/plugins/denoise/denoise.c     2009-07-12 14:36:31 UTC (rev 2590)
+++ trunk/plugins/denoise/denoise.c     2009-07-13 15:02:45 UTC (rev 2591)
@@ -40,7 +40,6 @@
        gint denoise_luma;
        gint denoise_chroma;
        gfloat warmth, tint;
-       gfloat exposure;
 };
 
 struct _RSDenoiseClass {
@@ -144,19 +143,6 @@
                }
        }
 
-       if (mask & MASK_EXPOSURE)
-       {
-               const gfloat exposure;
-
-               g_object_get(settings, 
-                       "exposure", &exposure,
-                       NULL );
-               if (ABS(exposure-denoise->exposure) > 0.01) {
-                       changed = TRUE;
-                       denoise->exposure = exposure;
-               }
-       }
-
        if (changed)
                rs_filter_changed(RS_FILTER(denoise), 
RS_FILTER_CHANGED_PIXELDATA);
 }
@@ -171,7 +157,6 @@
        denoise->denoise_chroma = 0;
        denoise->warmth = 0.23f;        // Default values
        denoise->tint = 0.07f;
-       denoise->exposure = 0.0f;       // Exposure compensation
 }
 
 static void
@@ -280,16 +265,14 @@
        else
                tmp = g_object_ref(output);
 
-       gfloat exp_comp = MIN (1.0, 1.0 / pow(2.0, denoise->exposure));
-
        denoise->info.image = tmp;
-       denoise->info.sigmaLuma = exp_comp * ((float) denoise->denoise_luma) / 
2.5;
-       denoise->info.sigmaChroma = exp_comp * ((float) 
denoise->denoise_chroma) / 2.5;
-       denoise->info.sharpenLuma = exp_comp * ((float) denoise->sharpen) / 
20.0;
+       denoise->info.sigmaLuma = ((float) denoise->denoise_luma) / 3.0;
+       denoise->info.sigmaChroma = ((float) denoise->denoise_chroma) / 2.0;
+       denoise->info.sharpenLuma = ((float) denoise->sharpen) / 20.0;
        denoise->info.sharpenCutoffLuma = 0.1f;
        denoise->info.beta = 1.0;
        denoise->info.sharpenChroma = 0.0f;
-       denoise->info.sharpenMinSigmaLuma = denoise->info.sigmaLuma + exp_comp 
* 2.0;
+       denoise->info.sharpenMinSigmaLuma = denoise->info.sigmaLuma * 1.25;
 
        denoise->info.redCorrection = (1.0+denoise->warmth)*(2.0-denoise->tint);
        denoise->info.blueCorrection = 
(1.0-denoise->warmth)*(2.0-denoise->tint);


_______________________________________________
Rawstudio-commit mailing list
[email protected]
http://rawstudio.org/cgi-bin/mailman/listinfo/rawstudio-commit

Reply via email to