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.
- Host: GitHub
- URL: https://github.com/adam-mazur/marching-squares-python
- Owner: Adam-Mazur
- License: mit
- Created: 2023-07-15T20:02:41.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-07-16T09:51:15.000Z (almost 2 years ago)
- Last Synced: 2025-01-15T12:13:07.990Z (5 months ago)
- Topics: marching-squares, metaballs, opencv-python
- Language: Python
- Homepage:
- Size: 86.9 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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:
![]()
![]()
![]()