Giter Site home page Giter Site logo

image-approximator's Introduction

Image-Approximator

Renders an image by splitting triangles, which yields a cool animation.

Requires:
*PyGame 1.9.2a0
*Python Imaging Library 1.1.6+

Todo

The following are areas for improvement:

  • There are currently lines drawn on the image as an artifact of the triangle-splitting. Should get rid of those lines -- they're ugly/distracting. (Done, with an option to have them in the image for a more `tiled' look.)

  • Current rendering process is DFS. Should also have a BFS option. (Done)

  • Should split triangles into triangles of random dimensons, rather than into right-angle triangles (a bit boring).

  • Could do this with random polygons at random positions. Maybe doing nothing but color inversions to approximate the image.

  • This needs to be sped up! Some optimization is called for.

  • Should make a shortcut-mode that bypasses the animation and instead just renders the final image, directly.

  • Does not yet work on certain grayscale images (e.g. Kitten.jpg.).

image-approximator's People

Contributors

datamine avatar

Watchers

 avatar  avatar  avatar

image-approximator's Issues

Putpixel too slow

This program extensively uses the putpixel method, which is way too slow. Should use putdata, load, or stuff from ImageDraw instead.

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.