This image processing project is based on digitizing an input image based on its spatial(sampling) and amplitude properties(quantization). The whole idea is implemented in Python using Opencv,Numpy and Matplotlib. The PDF attached above gives the complete explanation of the idea used to implement it and has result screenshots too.
The following installations are required.
pip install opencv-python
pip install numpy
pip install matplotlibTo deploy this project first clone the repository using git command or by downloading the zip file.Now forward to the downloaded directory and run the below commands in the terminal.
For the image sampling
python sampling.pyFor quantization using thresholding method
python quantisation_threshold.pyFor quantization using k-means clustering
python quantisation_k_means.py