anthonynsimon / bild

Image processing algorithms in pure Go
MIT License
3.99k stars 213 forks source link

Fix integer overflow on white colors #45

Closed gunnsth closed 6 years ago

gunnsth commented 7 years ago

Fixes #37

gunnsth commented 7 years ago

The grayscale conversion used is: GRAY = 0.3R + 0.6G + 0.1B In the previous test case:

In the previous version the main problem was when

anthonynsimon commented 6 years ago

Looks good to me, thanks! 👍

(Sorry for taking so long to get to this).