Added console output, #5070
This commit is contained in:
parent
3f606c776a
commit
1d01002953
@ -32,7 +32,7 @@
|
|||||||
#include "rt_algo.h"
|
#include "rt_algo.h"
|
||||||
#include "rt_math.h"
|
#include "rt_math.h"
|
||||||
#include "sleef.c"
|
#include "sleef.c"
|
||||||
|
#include <iostream>
|
||||||
namespace {
|
namespace {
|
||||||
float calcBlendFactor(float val, float threshold) {
|
float calcBlendFactor(float val, float threshold) {
|
||||||
// sigmoid function
|
// 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) {
|
if (minvar <= 1.f || pass == 1) {
|
||||||
const int minY = skip * minI;
|
const int minY = skip * minI;
|
||||||
const int minX = skip * minJ;
|
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;
|
contrastThreshold = minvar <= 4.f ? calcContrastThreshold(luminance, topLeftYStart + minI, topLeftXStart + minJ, tilesize) : 0.f;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user