castleman.space

Thomas Castleman's website.

Low Poly Images

2019-20

In April 2019 I started working on a program to filter images to look as though they were rendered with a low poly mesh.

The software creates an approximation using colored triangles that form a mesh spanning the entire dimensions of the source image. The technique I devised to accomplish this is described below:

  1. A set of points is laid over the image, with clusters of more points in areas where more detail occurs. (This is accomplished using dual-gradient energy and placing points probabilistically based on the amount of energy at a given pixel)
  2. A Delaunay triangulation is generated from this point set (using the Bowyer-Watson algorithm).
  3. The triangulation is then colored by first blurring the source image, then using the color of the pixel at each triangle's centroid to color that triangle (credit to Johnny Lindbergh for this idea). This has an effect similar to averaging the colors of the pixels contained within each triangle.

The source for this project can be found here.

A gallery of low poly images generated with this script is now available at this page.

I have also finished a working version of this image processor on the web, which allows you to upload your own images and turn them into low poly versions. This can be accessed here and the source is here