Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/iver56/cython-region-growing
A quick experiment: Region growing (AKA flood fill) algorithm implemented in Cython and Python
https://github.com/iver56/cython-region-growing
benchmark cython flood-fill numpy python region-growing
Last synced: 25 days ago
JSON representation
A quick experiment: Region growing (AKA flood fill) algorithm implemented in Cython and Python
- Host: GitHub
- URL: https://github.com/iver56/cython-region-growing
- Owner: iver56
- License: mit
- Created: 2019-06-10T14:05:20.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-06-10T18:44:39.000Z (over 5 years ago)
- Last Synced: 2024-11-05T18:57:03.262Z (2 months ago)
- Topics: benchmark, cython, flood-fill, numpy, python, region-growing
- Language: Python
- Homepage:
- Size: 9.77 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Region growing algorithm implemented in Cython
Set up Cython and a C++ compiler and install the dependencies specified in `requirements.txt`.
Then run `python run_region_growing.py` to test the two region growing algorithms, one implemented in Python and the other in Cython.
Both execution time measurements and correctness checks are in place.
On my machine, the Cython variant is one magnitude faster:
* Python: 540 ms
* Cython: 31 ms