{"id":20482351,"url":"https://github.com/agoose77/gco-ext","last_synced_at":"2025-10-25T07:10:22.035Z","repository":{"id":37940500,"uuid":"289668509","full_name":"agoose77/gco-ext","owner":"agoose77","description":"pybind11 bindings to the graph-cut optimization (GCO) library by Veksler and Delong.","archived":false,"fork":false,"pushed_at":"2023-01-16T23:03:51.000Z","size":242,"stargazers_count":0,"open_issues_count":4,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-04-23T17:06:31.539Z","etag":null,"topics":["cut","gco","graph","labelling","multi-label-optimization","optimization","pybind"],"latest_commit_sha":null,"homepage":"","language":"Jupyter Notebook","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/agoose77.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-08-23T11:02:40.000Z","updated_at":"2022-03-29T13:06:05.000Z","dependencies_parsed_at":"2023-01-31T02:15:15.888Z","dependency_job_id":null,"html_url":"https://github.com/agoose77/gco-ext","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agoose77%2Fgco-ext","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agoose77%2Fgco-ext/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agoose77%2Fgco-ext/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agoose77%2Fgco-ext/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/agoose77","download_url":"https://codeload.github.com/agoose77/gco-ext/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242058084,"owners_count":20065062,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cut","gco","graph","labelling","multi-label-optimization","optimization","pybind"],"created_at":"2024-11-15T16:12:38.766Z","updated_at":"2025-10-25T07:10:21.933Z","avatar_url":"https://github.com/agoose77.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gco\n[![tests-badge][]][tests] [![pypi-badge][]][pypi]\n\n[tests-badge]: https://github.com/agoose77/gco-ext/actions/workflows/tests.yml/badge.svg\n[tests]: https://github.com/agoose77/gco-ext/actions/workflows/tests.yml\n[pypi-badge]: https://img.shields.io/pypi/v/gco\n[pypi]: https://pypi.org/project/gco\n\nA 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/))\n\nThe exposed `GCO\u003cXXX\u003eGraph` classes are available under the `gco` root namespace.\n\nSee the [research homepage](https://vision.cs.uwaterloo.ca/code/) for license and usage information.\n\n## Neighborhood\nWithout the ability to easily create C++ arrays-of-arrays in Python, a `GCONeighborhood` class is exposed which builds pointers into flat arrays:\n```python\nneighborhood = gco.GCONeighborhood(count, site, cost)\n```\nwhere `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.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fagoose77%2Fgco-ext","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fagoose77%2Fgco-ext","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fagoose77%2Fgco-ext/lists"}