From 604020e1e24fb5b282ca4d3d3c1db8aeecb3f17c Mon Sep 17 00:00:00 2001 From: Desmis Date: Tue, 13 Oct 2015 17:07:17 +0200 Subject: [PATCH] best transition between method high and highlight --- rtengine/ipretinex.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/rtengine/ipretinex.cc b/rtengine/ipretinex.cc index aac78ab70..aa89ef639 100644 --- a/rtengine/ipretinex.cc +++ b/rtengine/ipretinex.cc @@ -263,8 +263,10 @@ void RawImageSource::MSR(float** luminance, float** originalLuminance, float **e if (deh.retinexMethod == "highli" || deh.retinexMethod == "highliplus") { moderetinex = 3; } - - float high = 0.6f*(float) deh.highl;//reduce sensibility + float aahi = 49.f/99.f;////reduce sensibility 50% + float bbhi = 1.f - aahi; + float high; + high = bbhi + aahi*(float) deh.highl; retinex_scales( RetinexScales, scal, moderetinex, nei, high ); int H_L = height;