Skip to content

THeK3nger/quadarto

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Quadarto Build Status Stories in Ready

Example

Quadarto is an Haskell script which performs image tessellation using a QuadTree pattern. The algorithm iterates over the image merging similar square regions of the images on the basis of their level of details.

The algorithm is developed in order as a small toy software for Haskell learning purpose and I'll try to be idiomatic as much as possible.

Usage

Installation

Quadarto can be installed directly from source:

git clone https://github.com/THeK3nger/quadarto.git
cd quadarto
cabal configure && cabal build

Run

To execute the program, run the following command from the quadarto folder:

cabal run <input_file> <color_threshold> [-o <output_file>]

Where

  • <input_file> is the input file path.
  • <color_threshold> is a value who indicates how similar two colors have to be in oder to be merged together. Usually values between 50 and 100 are good enough.
  • <output_file> is an optional output file path. If it is not specified the output file will be default.png.

Development

There is still a lot of work to do on the algorithm. The software works but it is still heavily non optimized and non idiomatic. I think can be interesting to follow the various commits I'll do to see how the software evolve towards its final idiomatic Haskell version. :)

About

QuadTree image tessellation, for fun.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published