Parcourir la source

Bug dans colorEditor. Rajout d'un colorEditor0 pour pallier le probleme. A modifier lorsque le bug sera trouvé dans colorEditor

synave il y a 2 ans
Parent
commit
b42672be99
1 fichiers modifiés avec 11 ajouts et 3 suppressions
  1. 11 3
      HDRip/all_processings.cpp

+ 11 - 3
HDRip/all_processings.cpp

@@ -220,11 +220,19 @@ float* full_process_5CO(float* data, unsigned int width, unsigned int height,
   img.saturation(saturation);
   // ******************************************
 
+  // ******************************************
+  // COLOR EDITOR 0
+  // TEST !!!! A SUPPRIMER NORMALEMENT.
+  float sel_light[2] = { 0,100 };
+  float sel_chr[2] = { 0,100 };
+  float sel_hue[2] = { 0,360 };
+
+  img.colorEditor(sel_light, sel_chr, sel_hue, 0.1, 0, 0, 0, 0, false);
   // ******************************************
   // COLOR EDITOR 1
-  float sel_light[2] = { ce_sel_light_l_co1, ce_sel_light_h_co1 };
-  float sel_chr[2] = { ce_sel_chr_l_co1, ce_sel_chr_h_co1 };
-  float sel_hue[2] = { ce_sel_hue_l_co1, ce_sel_hue_h_co1 };
+  sel_light[0] = ce_sel_light_l_co1; sel_light[1] = ce_sel_light_h_co1;
+  sel_chr[0] = ce_sel_chr_l_co1; sel_chr[1] = ce_sel_chr_h_co1;
+  sel_hue[0] = ce_sel_hue_l_co1; sel_hue[1] = ce_sel_hue_h_co1;
 
   img.colorEditor(sel_light, sel_chr, sel_hue, ce_tol_co1, ce_edit_hue_co1, ce_edit_expo_co1, ce_edit_con_co1, ce_edit_sat_co1, ce_mask_co1);
   // ******************************************