From 2582637ce61ad7ab1fc33d5abcf996d54e1d4ece Mon Sep 17 00:00:00 2001 From: Desmis Date: Tue, 2 Jul 2019 06:08:16 +0200 Subject: [PATCH] Change radius FFTW Retinex --- rtengine/ipretinex.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/rtengine/ipretinex.cc b/rtengine/ipretinex.cc index 29a7ca4ee..d1a37ca5c 100644 --- a/rtengine/ipretinex.cc +++ b/rtengine/ipretinex.cc @@ -1023,10 +1023,9 @@ void ImProcFunctions::MSRLocal(int sp, bool fftw, int lum, LabImage * bufreti, L if(settings->fftwsigma == false) {//empirical formula ImProcFunctions::fftw_convol_blur2(out, out, W_L, H_L,sqrtf(SQR(kr * RetinexScales[scale]) - SQR(kr * RetinexScales[scale + 1])), 0, 0); } else { - ImProcFunctions::fftw_convol_blur2(out, out, W_L, H_L,sqrtf(SQR(SQR(RetinexScales[scale])) - SQR(SQR(RetinexScales[scale + 1]))), 0, 0); + ImProcFunctions::fftw_convol_blur2(out, out, W_L, H_L,(SQR(RetinexScales[scale]) - SQR(RetinexScales[scale + 1])), 0, 0); } } - } if (scale == 1) { //equalize last scale with darkness and lightness