Skip to content

A small and generic single header k-means implementation in C++

Notifications You must be signed in to change notification settings

xor-shift/KMeans

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

What?

The name is self explanatory, this is a simple, small and generic K-Means implementation for C++

How to use

First get opencv then build the examples:
mkdir build && cd build && cmake -DCMAKE_BUILD_TYPE=Release ..
./bench <Big|FullHDNoise|UHDNoise> for benchmarking
./palette <path to image> for color palette extraction

There are the following examples included:

  • palette.hpp: good practical example but uses its own data conversion things
  • main.cpp: color palette extraction using palette.hpp
  • bench.cpp: benchmark with big datasets

About

A small and generic single header k-means implementation in C++

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published