code repository for generating pixelated images of k
colors, from a given image file.
To generate the pixelated color value for the files, follow the steps :
- Set the value of k to the desired value in
main.py
file - Set the input path for the desired image in the
main.py
file - Run the python script, to generate excel sheet for rgb values
- store the image rows ( number of pixels, counted rowwise ), in the global variable in main.cpp file.
- Run the cpp file, to generate the pixelated excel sheet, amd the color coding file
color.csv
.