Patch for the patch for the patch on exposure ;) This one should fix autoexposure...

This commit is contained in:
Emil Martinec 2010-08-03 18:02:02 -05:00
parent 76cd86742d
commit 45c0c817a3

View File

@ -491,7 +491,7 @@ void ImProcFunctions::getAutoExp (unsigned int* histogram, int histcompr, doubl
awg = maxaw; 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); br = log(65535.0 / (awg-bl)) / log(2.0);
if (br<0) if (br<0)