Ver código fonte

Remove gamma correction code

Martijn Braam 2 anos atrás
pai
commit
8c620a66dc
1 arquivos alterados com 0 adições e 10 exclusões
  1. 0 10
      stackercpp.cpp

+ 0 - 10
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);