Message Boards Message Boards

Making fake Voronoi diagrams

Posted 3 years ago

POSTED BY: J. M.
5 Replies

enter image description here -- you have earned Featured Contributor Badge enter image description here 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!

POSTED BY: Moderation Team

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!

POSTED BY: Sander Huisman
Posted 3 years ago

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.

POSTED BY: J. M.

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

POSTED BY: Sander Huisman
Posted 3 years ago

(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.)

POSTED BY: J. M.
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract