News for hackers. Stuff that matters.
Re:Image Dithering: Eleven Algorithms and Source Code by djmips on Friday October 06, 2017 @02:13AM (#15414787)
My suspicion is that you didn't handle the gamma correctly as mentioned in another comment.
Re:Image Dithering: Eleven Algorithms and Source Code by leni536 on Friday October 06, 2017 @08:31AM (#15416263)
https://imgur.com/595mX6m

Done with imageworsener[1].

    imagew -cc 2 -dither f -grayscale diR72k2.jpg diR72k2_dither.png
[1] http://entropymine.com/imageworsener/
Re:Image Dithering: Eleven Algorithms and Source Code by Matumio on Friday October 06, 2017 @03:06AM (#15414956)
Indeed, the dithered image looks way too bright. It should be converted from sRGB gamma to linear light before dithering to black/white. Also, will need more than 8bits per channel if you hold the linear image as an intermediate result, otherwise you get posterization in the dark areas before the dithering even starts.