From 8c620a66dcabfc8351e45c202e81906f1aace3e5 Mon Sep 17 00:00:00 2001 From: Martijn Braam Date: Wed, 8 Mar 2023 16:00:35 +0100 Subject: [PATCH] Remove gamma correction code --- stackercpp.cpp | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/stackercpp.cpp b/stackercpp.cpp index 33fe699..230f72e 100644 --- a/stackercpp.cpp +++ b/stackercpp.cpp @@ -93,16 +93,6 @@ Stacker::postprocess_mat(Mat input) multiply(input, Scalar(scale_b, scale_g, scale_r), input); stopwatch_mark("levels"); - stopwatch_start(); - float gamma = 1 / 0.9; - Mat table(1, 256, CV_8U); - uchar *p = table.ptr(); - for (int i = 0; i < 256; ++i) { - p[i] = (uchar) (pow(i / 255.0, gamma) * 255); - } - LUT(input, table, input); - stopwatch_mark("gamma"); - stopwatch_start(); Mat sharpened; GaussianBlur(input, sharpened, Size(0, 0), 1.7); -- 2.45.2