multiple python implementations for image dithering
image dithering - wikipedia definition: Dither is an intentionally applied form of noise used to randomize quantization error, preventing large-scale patterns such as color banding in images. Dither is routinely used in processing of both digital audio and video data.
pip install PyDither
import cv2
import Dither
img = cv2.imread('images/img1.jpg', 0) # read image
out = Dither.dither(img, 'simple2D', resize=True) # perform image dithering
cv2.imshow('dithered image', out)
cv2.waitKey(0)
Run the file main.py
this repository implements 3 different types of error diffusion based image dithering algorithms.
This project is licensed under the BSD 2 License - see the LICENSE.md file for details