Coder Social home page Coder Social logo

dzutrinh / bayer-matrix-generator Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 1.51 MB

Tool to generate Bayer matrix into a Pascal source file.

License: GNU General Public License v3.0

Pascal 95.21% Batchfile 4.79%
bayer dithering ordered pascal turbopascal freepascal tmtpascal dos msdos

bayer-matrix-generator's Introduction

Bayer Matrix Generator

Descriptions

Generate level 1, 2, 3 and 4 Bayer matrix into a Pascal source file. A demo program and a texture generator are also included.

  • BAYER: Bayer matrix generator. Result is stored in a Pascal source file to include in your program.
  • DITHER: An Ordered dithering program based on the generated matrix from BAYER. It take input as a PGM graymap, dithering it and write out a dithered bitmap in PBM format. These formats can be handled by using apps such as GIMP, Photoshop, XnView, etc. Samples graymaps are provided inside the TEST folder.
  • GENTEX: Tool to generate Bayer matrices textures (128x128) in PGM graymaps.

Changes

  • Portable Bitmap support added, all outputs from DITHER are now stored in PBM.
  • GENTEX utility added.
  • Reorganized folder structures.

Build

make

This repo is compatible with Turbo/Borland Pascal 7, TMT Pascal and Free Pascal. Feels free to use your beloved Pascal compiler. Please note that due to the limitation of Turbo Pascal, the maximum graymap size cannot exceed a segment (64K).

Tested in DOSBox only :)

Samples

Outputs of GENTEX

patterns

Outputs from DITHER

Left to right: Original/Bayer2x2/Bayer4x4/Bayer8x8

BAY

DAVID

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.