timothybrooks / hdr-plus

HDR+ Implementation
MIT License
594 stars 201 forks source link

gamma_frac ? #17

Closed gooooloo closed 6 years ago

gooooloo commented 6 years ago

https://github.com/timothybrooks/hdr-plus/blob/d2b56c2dcc859921252d63aea39876c9d1d73f38/src/util.cpp#L196

According to comment of this method, the formula 1.2b in this link, shouldn't it be gamma_fac = 69139; // 1.055 * UINT16_MAX ?

gooooloo commented 6 years ago

Oh you are right.