Giter Site home page Giter Site logo

bitmapconverter's Introduction

简介

bitmapConvorter项目是对bitmap颜色量化的研究与实现,实现了4bpp,8bpp,16bpp,24bpp,32bpp之间的互相转换。

其中4bpp与8bpp的转换采用了8叉树的算法来提取主题色生成调色盘。在8bpp转换时效果良好。

16bpp通过舍去低位将RGB888转换为RGB565,但是实现效果不是很理想,偏色比较明显。也许应该在转换之前先靠色。

4bpp转换时发生了奇怪的现象,如果原图片色彩较少时,转换一切正常,但如果原图色彩较丰富时,图片就会出现莫名的扭曲。也许应该考虑采取其他的颜色量化算法。

用法

usage: [-i infile] [-b bitCount] [-o outfile] [-g] [-h] [infile]

bitmapconverter's People

Contributors

benny502 avatar

Watchers

 avatar

bitmapconverter's Issues

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.