Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

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

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