Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

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.

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/gco

A 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.