Skip to content

Latest commit

 

History

History
31 lines (19 loc) · 831 Bytes

File metadata and controls

31 lines (19 loc) · 831 Bytes

Image-Color-Reducer

A C++ implementation of the winner-takes-all clustering algorithm to approximate the optimal subset of colors found in the image which can be used to reduce its color set. Running with 32 clusters will result in a new image that looks similar to the old image, but only has 32 colors present in it. It uses a matrix library, which has been included.

Results

original Image:

Original

64 Colors:

64

32 Colors:

32

16 Colors:

16

8 Colors:

8

4 Colors:

4

2 Colors:

2

    Usage: NumberOfClusters learningRate filename

note a good learning rate value is small, such as 0.01