Added console output, #5070

This commit is contained in:
heckflosse 2018-12-08 17:42:31 +01:00
parent 3f606c776a
commit 1d01002953

View File

@ -32,7 +32,7 @@
#include "rt_algo.h"
#include "rt_math.h"
#include "sleef.c"
#include <iostream>
namespace {
float calcBlendFactor(float val, float threshold) {
// sigmoid function
@ -343,7 +343,7 @@ void buildBlendMask(float** luminance, float **blend, int W, int H, float &contr
}
}
}
std::cout << pass + 1 << " : " << minvar << std::endl;
if (minvar <= 1.f || pass == 1) {
const int minY = skip * minI;
const int minX = skip * minJ;
@ -393,6 +393,7 @@ void buildBlendMask(float** luminance, float **blend, int W, int H, float &contr
}
}
}
std::cout << 3 << " : " << minvar << std::endl;
contrastThreshold = minvar <= 4.f ? calcContrastThreshold(luminance, topLeftYStart + minI, topLeftXStart + minJ, tilesize) : 0.f;
}
}