Skip to content

This repository implement basic algorithms for voronoi diagram and visualize them.

License

Notifications You must be signed in to change notification settings

jk13o3lll/voronoi

Repository files navigation

voronoi

This repository implement basic algorithms for voronoi diagram and visualize them.

Bowyer Watson Method

source: bowyer_watson.h, bowyer_watson.cpp, bowyer_watson_test.cpp

For finding bad triangulation, we can use some data structure to speed. (If you have considerable fine meshes)

Bowyer Watson Method

Directly compute for every pixel

source: direct.h, direct.cpp, direct_test.cpp

We compute distance map preliminary to speed up.

The for loop for scanning all pixels can be parallelized. (If you have a lot of pixels)

Euclidean distance

Euclidean distance

Manhattan distance

Manhattan distance

Cubic distance

Cubic distance

OpenCV Subdiv2D class (Bowyer Watson Method)

source; cv_example.cpp

OpenCV Subdiv2D

Others...

Contact

[email protected]

About

This repository implement basic algorithms for voronoi diagram and visualize them.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages