Skip to content

Latest commit

 

History

History
28 lines (14 loc) · 1.84 KB

README.md

File metadata and controls

28 lines (14 loc) · 1.84 KB

Color Reduction Windows Form

Windows form that allows reduction of number of colors on the picture. Main purpose is to make image look more like a painting using colors of existing paints listed in the csv file.

How to use

There are 2 main working modes for color reduction and 1 experimental mode for smoothing out edges of color sectors right now.

Main working principle

The main working principle for reduction is that some number of points is chosen from the image (either randomly or picked by user). The program finds closest colors to the picked ones in the pallete of existing colors that is described in the csv file. Then, each pixel of the image is replaced by the closest color from the available ones.

User controlled mode

In this mode pixels for the color choosing are picked by the user on the form. After uploading the image, window for pixel picking opens. User can pick pixels by clicking on the desired places of the image. Red crosses indicate places where user has clicked. Central pixel from the cross is saved for further usage by reducing algorithm.

screenshot

After picking some pixels of colors you would like to be used for reduction, you have to save them. Then the previous form with processing opens. After processing user can save the output image.

screenshot

Random points mode

In this working mode pixels for the color choosing are picked randomly from the image. User can change number of points picked for each output image. Right now there are 4 output images on the form, for each output image there is a text box to set number of pixels to pick. User also can change random seed for the picking algorithm to try get different outcomes. You can save any output image just by clicking on it.

screenshot