|
@@ -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);
|