~martijnbraam/postprocessd

8c620a66dcabfc8351e45c202e81906f1aace3e5 — Martijn Braam 1 year, 9 months ago fc62ab4
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);