Giter Club home page Giter Club logo

divquantcluster's Introduction

DivQuantCluster

Clustering using divisive split and k-means in C++

My Blog Post about this software: http://www.modejong.com/blog/post17_divquant_clustering

This clustering approach was originally implemented by M. Emre Celebi. The clustering implementation provides an exceptionally fast clustering algorithm in C++ that is optimized for execution speed and for low memory use on embedded devices.

The main.cpp logic demonstrates a specific application of clustering for image pixels. Each pixel is clustered in 3D space to produce a color sorted list of clusters and then the original pixels are reordered in terms of the sorted cluster center order.

For example, the very large 4K (4096 x 2160 pixels) image at:

http://andyyoong.com/fs700-4k-raw-test/

On a desktop system, the 4k image above can be processed in about 10 seconds with a reasonably fast quant method like Gvm or pngquant.

https://pngquant.org/

https://github.com/mdejong/GvmCpp

This library is able to process the image into 256 clusters in about 1/2 a second while using less than 10 megs of memory.

M. E. Celebi, Q. Wen, S. Hwang, An Effective Real-Time Color Quantization Method Based on Divisive Hierarchical Clustering, Journal of Real-Time Image Processing, 10(2): 329-344, 2015

http://link.springer.com/article/10.1007%2Fs11554-012-0291-4

divquantcluster's People

Contributors

mdejong avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

minghao2016 pinc

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.