Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/agoose77/gco-ext
pybind11 bindings to the graph-cut optimization (GCO) library by Veksler and Delong.
https://github.com/agoose77/gco-ext
cut gco graph labelling multi-label-optimization optimization pybind
Last synced: about 2 months ago
JSON representation
pybind11 bindings to the graph-cut optimization (GCO) library by Veksler and Delong.
- Host: GitHub
- URL: https://github.com/agoose77/gco-ext
- Owner: agoose77
- Created: 2020-08-23T11:02:40.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-01-16T23:03:51.000Z (almost 2 years ago)
- Last Synced: 2024-04-23T17:06:31.539Z (8 months ago)
- Topics: cut, gco, graph, labelling, multi-label-optimization, optimization, pybind
- Language: Jupyter Notebook
- Homepage:
- Size: 236 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# gco
[![tests-badge][]][tests] [![pypi-badge][]][pypi][tests-badge]: https://github.com/agoose77/gco-ext/actions/workflows/tests.yml/badge.svg
[tests]: https://github.com/agoose77/gco-ext/actions/workflows/tests.yml
[pypi-badge]: https://img.shields.io/pypi/v/gco
[pypi]: https://pypi.org/project/gcoA Python interface to the [gco](https://github.com/agoose77/gco-v3.0) library (modified for repackaging from [the original source](https://vision.cs.uwaterloo.ca/code/))
The exposed `GCOGraph` classes are available under the `gco` root namespace.
See the [research homepage](https://vision.cs.uwaterloo.ca/code/) for license and usage information.
## Neighborhood
Without the ability to easily create C++ arrays-of-arrays in Python, a `GCONeighborhood` class is exposed which builds pointers into flat arrays:
```python
neighborhood = gco.GCONeighborhood(count, site, cost)
```
where `count[i]` is the number of neighbours for site `i`, `site[j]` is the site of the jth cumulative neighbour, and `cost` the corresponding cost for such a neighbour.