K-means聚类算法实现图片的压缩,Python实现
- 2018-03-19 修改代码格式,封装成对象
- 2017-09-06 增加使用TensorFlow实现(实测速度比纯python+numpy慢)
- K 全图用多少种颜色表示,默认值 K=16,设置K后将会对所有图像进行聚类,并只使用K种颜色表示全图
- iter 迭代计算次数, 默认值 iter=3
- 未实现压缩后的存储(降低图像文件大小),只能存为一般jpg格式预览压缩后效果
默认参数下的效果
This project forked from sherlockunknowen/imagecompress
K-means聚类算法实现图片的压缩,Python实现
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.