Fixing bug in autoexposure in conjunction with highlight reconstruction.
This commit is contained in:
parent
262db188d7
commit
10c2d8d511
@ -653,7 +653,7 @@ void ImProcFunctions::getAutoExp (unsigned int* histogram, int histcompr, doubl
|
||||
awg = CurveFactory::igamma2 ((float)(awg/65535.0)) * 65535.0; //need to inverse gamma transform to get correct exposure compensation parameter
|
||||
|
||||
bl = (int)((65535*bl)/awg);
|
||||
br = log(65535.0 / (awg)) / log(2.0);
|
||||
br = log(65535.0*corr / (awg)) / log(2.0);
|
||||
if (br<0)
|
||||
br = 0;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user