Improve finer and coarser levels with maxlevels

This commit is contained in:
Desmis
2020-06-09 13:16:34 +02:00
parent ad48610dfb
commit 371add936b
3 changed files with 18 additions and 3 deletions

View File

@@ -469,7 +469,8 @@ void ImProcFunctions::ip_wavelet(LabImage * lab, LabImage * dst, int kall, const
cp.t_lsl = static_cast<float>(params->wavelet.bllev.getTopLeft());
cp.b_rsl = static_cast<float>(params->wavelet.bllev.getBottomRight());
cp.t_rsl = static_cast<float>(params->wavelet.bllev.getTopRight());
cp.numlevS = 9 - params->wavelet.threshold2;
// cp.numlevS = 9 - params->wavelet.threshold2;
cp.numlevS = params->wavelet.thres - params->wavelet.threshold2;
int maxlevS = cp.numlevH;
cp.numlevS = rtengine::max(cp.numlevS, maxlevS);
//highlight