Surface distance metrics
Summary
When 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.
Surfaces are represented using surface elements with corresponding area, allowing for more consistent approximation of surface measures.
Metrics included
This library computes the following performance metrics for segmentation:
- Average surface distance (see
compute_average_surface_distance) - Hausdorff distance (see
compute_robust_hausdorff) - Surface overlap (see
compute_surface_overlap_at_tolerance) - Surface dice (see
compute_surface_dice_at_tolerance) - Volumetric dice (see
compute_dice_coefficient)
Installation
First clone the repo, then install the dependencies and surface-distance
package via pip:
$ git clone https://github.com/deepmind/surface-distance.git
$ pip install surface-distance/
Usage
For simple usage examples, see surface_distance_test.py.
Metadata
Release files for surface-distance 0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| surface_distance-0.1.tar.gz | 13.2 kB | Without provenance | Details for surface_distance-0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| surface_distance-0.1-py3-none-any.whl | Python 3 | none | any | Details for surface_distance-0.1-py3-none-any.whl |
Total release size: 27.9 kB
Release files / surface_distance-0.1.tar.gz
| Download URL | surface_distance-0.1.tar.gz |
|---|---|
| Size | 13.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2e7bfe2e33f4a3e30041200a85b655b39e05b09b8b3b67a8615b1d92704c6b76
|
|
BLAKE2b-256 checksum How to use checksums |
12aea9091176cf42bbbe64ce21d1c3b49d1502d1fd523215bb5ed65fa2efc0c5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.11.9
|
Release files / surface_distance-0.1-py3-none-any.whl
| Download URL | surface_distance-0.1-py3-none-any.whl |
|---|---|
| Size | 14.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
cc837ca7cd269136a1e16382384f6b9193f4519dd4659b8dbdbb794e4073f768
|
|
BLAKE2b-256 checksum How to use checksums |
b06145e9641801e043497a92bda1aa7e87dd933eafa1eed1d6be8dfc9736f939
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.11.9
|
Security for surface-distance 0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.