Simple program to generate Voronoi Maps of user supplied images.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
build
images
nbproject
src/voronoimap
.gitattributes
.gitignore
README.md
build.xml
manifest.mf

README.md

VoronoiMap

Simple program to generate Voronoi Maps (https://en.wikipedia.org/wiki/Voronoi_diagram) of user supplied images. The program accepts arguments from the user for image (.jpg or .png, chosen from a file picker), number of nodes, and distance formula to be used (Manhattan or Euclidian). I developed the algorithm pretty quickly so there is definitely room for optimization, but for now this works and I am content with it.

Inspiration

Inspiration for this came from https://codegolf.stackexchange.com/questions/50299/draw-an-image-as-a-voronoi-map

#Examples

Original


n = 100

n = 500

n = 1000

n = 2500

Original


n = 100

n = 500

n = 1000

n = 2500

Original


n = 100

n = 500

n = 1000

n = 2500

More info

More information on Voronoi Maps: https://en.wikipedia.org/wiki/Voronoi_diagram