项目作者: KarolPiasnik

项目描述 :
An image converter that converts bmp file to custom 6-bit color depth file format
高级语言: C++
项目地址: git://github.com/KarolPiasnik/6bit-image-converter.git
创建时间: 2018-02-08T11:53:05Z
项目社区:https://github.com/KarolPiasnik/6bit-image-converter

开源协议:MIT License

下载


Image Converter (.bmp :left_right_arrow: .karol)

In this project we’ve developed a converter that converts .bmp to .karol and then do the same, yet in the opposite direction. By default, Byte Run is performed. The conversion is accompanied by additional operations. First one is converting to Grayscale, to Imposed Color Palette or to Color Palette chosen by Median Cut algorithm. Those last two choices yield in return an image that has 64-color palette. After that, user is prompted to decide whether to use Floyd-Steinberg (a.k.a dithering) algorithm or not. Last option consists of choices for what to do with the output - save it as .bmp, .karol or not to save it at all.


Preview

Original Image Median Cut (includes Dithering) Grayscale (includes Dithering)

Launching the Converter

In order to launch the converter make sure you have properly intialised SDL with Visual Studio 2017.

Seting Up SDL with Visual Studio 2017

Note: SDL library in 1.2.15 version was used.

To-Do List:

  • Open and save .bmp file
  • Find closest color in Imposed Palette
  • Median Cut algorithm
  • Perform Grayscale conversion
  • Floyd-Steinberg algorithm
  • Open and save .karol file properly
  • Fix Byte Run to run properly with any given input

Authors