|
@@ -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 *
|