Browse Source

Skip L*a*b conversion

It's not used at the moment due to disabled filters
Martijn Braam 3 years ago
parent
commit
e10fe19072
2 changed files with 7 additions and 5 deletions
  1. 1 1
      postprocess.c
  2. 6 4
      stackercpp.cpp

+ 1 - 1
postprocess.c

@@ -421,4 +421,4 @@ postprocess_internal(char *burst_dir, char *target_dir)
     fprintf(stderr, "JPEG    stacked.jpg\n");
     snprintf(stackpath, sizeof(stackpath), "%s.stacked.jpg", target_dir);
     save_jpeg(stackpath, stacked_data, 90, exif);
-}
+}

+ 6 - 4
stackercpp.cpp

@@ -107,6 +107,9 @@ Stacker::postprocess_mat(Mat input)
     addWeighted(input, 2.5, sharpened, -1.5, 0, sharpened);
     stopwatch_mark("sharpen");
 
+    /* Disabled CLAHE local contrast, it's a bit to overpronounced and doesn't
+     * seem really necessary at this point
+
     stopwatch_start();
     Mat lab;
     cvtColor(sharpened, lab, COLOR_BGR2Lab);
@@ -114,8 +117,6 @@ Stacker::postprocess_mat(Mat input)
     cv::split(lab, lab_planes);
     stopwatch_mark("to Lab");
 
-    /* Disabled CLAHE local contrast, it's a bit to overpronounced and doesn't
-     * seem really necessary at this point
     stopwatch_start();
     cv::Ptr<cv::CLAHE> clahe = cv::createCLAHE();
     clahe->setClipLimit(1);
@@ -124,14 +125,15 @@ Stacker::postprocess_mat(Mat input)
     clahe->apply(lab_planes[0], dst);
     dst.copyTo(lab_planes[0]);
     stopwatch_mark("clahe");
-    */
 
     stopwatch_start();
     Mat result;
     cv::merge(lab_planes, lab);
     cvtColor(lab, result, COLOR_Lab2BGR);
     stopwatch_mark("to RGB");
-    return result;
+    */
+
+    return sharpened;
 }
 
 char *