Improvment to residual image

This commit is contained in:
Desmis
2019-05-21 07:48:18 +02:00
parent 3aacc1db53
commit fc9867eb2d
13 changed files with 115 additions and 22 deletions

View File

@@ -1590,8 +1590,8 @@ void ImProcFunctions::EPDToneMapResid(float * WavCoeffs_L0, unsigned int Iterat
float stren = cp.tmstrength;
float edgest = params->epd.edgeStopping;
float sca = params->epd.scale;
float edgest = params->wavelet.edgs;
float sca = params->wavelet.scale;
float gamm = params->wavelet.gamma;
float rew = params->epd.reweightingIterates;
EdgePreservingDecomposition epd2(W_L, H_L);
@@ -1769,6 +1769,7 @@ void ImProcFunctions::WaveletcontAllL(LabImage * labco, float ** varhue, float *
{
if (contrast != 0.f && cp.resena && max0 > 0.0) { // contrast = 0.f means that all will be multiplied by 1.f, so we can skip this step
{
//
#ifdef _OPENMP
#pragma omp for
#endif
@@ -1794,7 +1795,8 @@ void ImProcFunctions::WaveletcontAllL(LabImage * labco, float ** varhue, float *
}
}
}
//
if (cp.tonemap && cp.contmet == 1 && cp.resena) {
float maxp = max0 * 256.f;
float minp = min0 * 256.f;