An open API service indexing awesome lists of open source software.

https://github.com/adam-mazur/marching-squares-python

A simple implementation of the marching squares algorithm for openCV python.
https://github.com/adam-mazur/marching-squares-python

marching-squares metaballs opencv-python

Last synced: 3 months ago
JSON representation

A simple implementation of the marching squares algorithm for openCV python.

Awesome Lists containing this project

README

        

# Simple implementation of the marching squares algorithm for python openCV
The marching squares algorithm is used to display a contour of an explicit function.
This project was inspired by [this video](https://www.youtube.com/watch?v=6oMZb3yP_H8&list=LL&index=1&t=1459s).
More information about the marching squares algorithm and metaballs animation that was used as one of the examples can be found here:

- [Wikipedia page about marching squares](https://en.wikipedia.org/wiki/Marching_squares)

- [Wikipedia page about metaballs](https://en.wikipedia.org/wiki/Metaballs)

Here are some examples of how this algorithm can be used:

- Displaying a circle:

- Displaying an ellipse:

- Metaballs animation: