|
|
|
|
|
by venusgirdle
430 days ago
|
|
Hi, OP here! Thank you so much for pointing this out! Just read the post you linked and did some of my own research on the non-linearity of sRGB - really fascinating stuff :) For now, I've acknowledged this limitation of my implementation so that any new readers are aware of it: https://amanvir.com/blog/writing-my-own-dithering-algorithm-... But I'll definitely revisit the article to add proper linearization to my implementation when I have the time. Thanks again for mentioning this! |
|
What you're doing is sRGB -> linear perceived luminance space -> sRGB (greyscale, where R=G=B) -> dithering
When you should be applying dithering in the linear perceived luminance space, then covering the dithered image back into sRGB space.