Hi all,

I’m trying to make myself more comfortable with blogging often. To do so, I wanted to publish a quick post about small project that I’ve done ~6 months ago. I’m basically revisiting the blog workflow while publishing this post :)

This is ‘Floyd-Steinberg’ dithering algorithm implementation in C++. Source code can be found at https://github.com/kehribar/Dithering-OpenCV

The algorithm is very useful if you have a black/white output capable only device (like thermal printers or monochrome displays) but want to have some sort of detailed image.

Results

image

image

References

See https://en.wikipedia.org/wiki/Floyd%E2%80%93Steinberg_dithering for additional details.