[Dclib-devel] [dclib-devel] input_rgb_image and division by 256
Brought to you by:
davisking
|
From: Eloi Du B. <elo...@gm...> - 2017-12-08 21:49:10
|
Hi,
Digging in the code I found this, which I found curious:
input.h +105
*p = (temp.red-avg_red)/256.0;
p += offset;
*p = (temp.green-avg_green)/256.0;
p += offset;
*p = (temp.blue-avg_blue)/256.0;
p += offset;
As the input goes from 0 to 255, isn't it better to divide by 255? Not sure
it has a big influence, just want to notify.
Bests,
Eloi.
|