Skip to content

Utkarsh-Deshmukh/image-dithering-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

image-dithering-python

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.

implementation:

method 1:

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)

method 2:

Run the file main.py

Results:

readme1

Theory:

this repository implements 3 different types of error diffusion based image dithering algorithms.

image

License:

This project is licensed under the BSD 2 License - see the LICENSE.md file for details

About

multiple python implementations for image dithering

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages