From 45c0c817a32f425ee4d494b72b4f43e362da8f90 Mon Sep 17 00:00:00 2001 From: Emil Martinec Date: Tue, 3 Aug 2010 18:02:02 -0500 Subject: [PATCH] Patch for the patch for the patch on exposure ;) This one should fix autoexposure... --- rtengine/improcfun.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rtengine/improcfun.cc b/rtengine/improcfun.cc index 0d8d459c5..4735100c2 100644 --- a/rtengine/improcfun.cc +++ b/rtengine/improcfun.cc @@ -491,7 +491,7 @@ void ImProcFunctions::getAutoExp (unsigned int* histogram, int histcompr, doubl awg = maxaw; } - awg = CurveFactory::igamma2 (awg); //need to inverse gamma transform to get correct exposure compensation parameter + awg = CurveFactory::igamma2 ((float)(awg/65535.0)) * 65535.0; //need to inverse gamma transform to get correct exposure compensation parameter br = log(65535.0 / (awg-bl)) / log(2.0); if (br<0)