Remove gamma correction code
1 files changed, 0 insertions(+), 10 deletions(-) M stackercpp.cpp
M stackercpp.cpp => stackercpp.cpp +0 -10
@@ 94,16 94,6 @@ Stacker::postprocess_mat(Mat 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); addWeighted(input, 2.5, sharpened, -1.5, 0, sharpened);