Making fake Voronoi diagrams

4 Likes

(This is my first time trying to post an embedded notebook here in Community. I hope it went well, and I hope the technique demonstrated in the notebook proves useful.)

2 Likes

Thanks for sharing! I’m not sure why you call them fake? I think you used the definition of Voronoi correctly…

I’ve also made some Voronoi functions before that work on images, even allowing different distance-function for each object. Your sphere version will be useful to me. Thanks!

I call them “fake” in that the results do look like Voronoi diagrams, but there’s not much else you can do with them. To use my first example, VoronoiMesh[] is certainly easier to do stuff with than the fake I made with DensityPlot[].

In an e-mail, Christopher Wolfram suggested that one might be able to use WatershedComponents[] on the resulting pictures, but I have yet to do those experiments.

Regarding the example with multiple objects that you mention, I did something like that in this mathematica.SE answer.

Indeed, I have used Watershed transform on these, there is even a Voronoi example in the documentation of WatershedComponents.

news-congrads-kkluyshnik-02-04-19.jpg – you have earned Featured Contributor Badge 2015-11-02_10-07-11.png
Your exceptional post has been selected for our editorial column Staff Picks http://wolfr.am/StaffPicks and Your Profile is now distinguished by a Featured Contributor Badge and is displayed on the Featured Contributor Board. Thank you!