{"id":28753258,"url":"https://github.com/google-deepmind/surface-distance","last_synced_at":"2025-06-17T00:39:21.793Z","repository":{"id":39707655,"uuid":"141585802","full_name":"google-deepmind/surface-distance","owner":"google-deepmind","description":"Library to compute surface distance based performance metrics for segmentation tasks.","archived":false,"fork":false,"pushed_at":"2025-02-19T16:40:53.000Z","size":40,"stargazers_count":563,"open_issues_count":7,"forks_count":117,"subscribers_count":12,"default_branch":"master","last_synced_at":"2025-05-20T10:19:03.702Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/google-deepmind.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2018-07-19T13:46:05.000Z","updated_at":"2025-05-14T13:30:41.000Z","dependencies_parsed_at":"2023-09-07T20:34:52.814Z","dependency_job_id":"84473e97-a20a-423f-b789-dadf9a8dc3a5","html_url":"https://github.com/google-deepmind/surface-distance","commit_stats":null,"previous_names":["google-deepmind/surface-distance","deepmind/surface-distance"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/google-deepmind/surface-distance","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/google-deepmind%2Fsurface-distance","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/google-deepmind%2Fsurface-distance/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/google-deepmind%2Fsurface-distance/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/google-deepmind%2Fsurface-distance/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/google-deepmind","download_url":"https://codeload.github.com/google-deepmind/surface-distance/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/google-deepmind%2Fsurface-distance/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260268635,"owners_count":22983601,"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":[],"created_at":"2025-06-17T00:39:20.665Z","updated_at":"2025-06-17T00:39:21.769Z","avatar_url":"https://github.com/google-deepmind.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Surface distance metrics\n\n## Summary\nWhen comparing multiple image segmentations, performance metrics that assess how closely the surfaces align can be a useful difference measure. This group of surface distance based measures computes the closest distances from all surface points on one segmentation to the points on another surface, and returns performance metrics between the two. This distance can be used alongside other metrics to compare segmented regions against a ground truth.\n\nSurfaces are represented using surface elements with corresponding area, allowing for more consistent approximation of surface measures.\n\n## Metrics included\nThis library computes the following performance metrics for segmentation:\n\n- Average surface distance (see `compute_average_surface_distance`)\n- Hausdorff distance (see `compute_robust_hausdorff`)\n- Surface overlap (see `compute_surface_overlap_at_tolerance`)\n- Surface dice (see `compute_surface_dice_at_tolerance`)\n- Volumetric dice (see `compute_dice_coefficient`)\n\n## Installation\nFirst clone the repo, then install the dependencies and `surface-distance`\npackage via pip:\n\n```shell\n$ git clone https://github.com/deepmind/surface-distance.git\n$ pip install surface-distance/\n```\n\n## Usage\nFor simple usage examples, see `surface_distance_test.py`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgoogle-deepmind%2Fsurface-distance","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgoogle-deepmind%2Fsurface-distance","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgoogle-deepmind%2Fsurface-distance/lists"}