{"id":16162398,"url":"https://github.com/sunsided/graph-based-image-segmentation","last_synced_at":"2025-03-18T22:31:07.538Z","repository":{"id":62709397,"uuid":"304461450","full_name":"sunsided/graph-based-image-segmentation","owner":"sunsided","description":"Graph-Based Image Segmentation in Rust","archived":false,"fork":false,"pushed_at":"2023-09-22T21:24:45.000Z","size":678,"stargazers_count":11,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-17T00:09:19.340Z","etag":null,"topics":["computer-vision","image-processing","image-segmentation","rust","superpixel-algorithm","superpixels"],"latest_commit_sha":null,"homepage":"https://crates.io/crates/graph-based-image-segmentation","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sunsided.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2020-10-15T22:26:13.000Z","updated_at":"2025-03-01T19:28:24.000Z","dependencies_parsed_at":"2023-09-24T07:17:28.957Z","dependency_job_id":null,"html_url":"https://github.com/sunsided/graph-based-image-segmentation","commit_stats":{"total_commits":50,"total_committers":1,"mean_commits":50.0,"dds":0.0,"last_synced_commit":"07ee753f63e687755c765641380a29761b2f3528"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sunsided%2Fgraph-based-image-segmentation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sunsided%2Fgraph-based-image-segmentation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sunsided%2Fgraph-based-image-segmentation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sunsided%2Fgraph-based-image-segmentation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sunsided","download_url":"https://codeload.github.com/sunsided/graph-based-image-segmentation/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244318528,"owners_count":20433927,"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":["computer-vision","image-processing","image-segmentation","rust","superpixel-algorithm","superpixels"],"created_at":"2024-10-10T02:29:59.805Z","updated_at":"2025-03-18T22:31:07.253Z","avatar_url":"https://github.com/sunsided.png","language":"Rust","readme":"# Efficient Graph-Based Image Segmentation\n\nThis repository contains a Rust implementation of the graph-based image segmentation algorithms\ndescribed in `[1]` (available [here](http://cs.brown.edu/~pff/segment/)) \nfocussing on generating over-segmentations, also referred to as superpixels.\n\n| Contours                 | Labels                 |\n|--------------------------|------------------------|\n| ![](images/contours.jpg) | ![](images/labels.jpg) |\n\nPlease note that this is a reference implementation and not particularly fast.\n\n```\n[1] P. F. Felzenswalb and D. P. Huttenlocher.\n    Efficient Graph-Based Image Segmentation.\n    International Journal of Computer Vision, volume 59, number 2, 2004.\n```\n\nThe implementation is based on [this work](https://github.com/davidstutz/graph-based-image-segmentation) by David Stutz,\nwhich in turn was used in `[2]` for evaluation.\n\n```\n[2] D. Stutz, A. Hermans, B. Leibe.\n    Superpixels: An Evaluation of the State-of-the-Art.\n    Computer Vision and Image Understanding, 2018.\n```\n\n## Example use\n\n```rust\nfn main() {\n    let mut image = imread(\"data/tree.jpg\", IMREAD_COLOR).unwrap();\n\n    let threshold = 10f32;\n    let segment_size = 10;\n    let mut segmenter = Segmentation::new(\n        EuclideanRGB::default(),\n        MagicThreshold::new(threshold),\n        segment_size,\n    );\n\n    // NOTE: The image should be blurred before use; this is left out here for brevity.\n    let labels = segmenter.segment_image(\u0026image);\n}\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsunsided%2Fgraph-based-image-segmentation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsunsided%2Fgraph-based-image-segmentation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsunsided%2Fgraph-based-image-segmentation/lists"}