Library containing utilities to compute performance metrics for segmentation
Project description
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
.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file surface_distance-0.1.tar.gz
.
File metadata
- Download URL: surface_distance-0.1.tar.gz
- Upload date:
- Size: 13.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2e7bfe2e33f4a3e30041200a85b655b39e05b09b8b3b67a8615b1d92704c6b76 |
|
MD5 | 712283aa86f7aed898956b960ed7f64d |
|
BLAKE2b-256 | 12aea9091176cf42bbbe64ce21d1c3b49d1502d1fd523215bb5ed65fa2efc0c5 |
File details
Details for the file surface_distance-0.1-py3-none-any.whl
.
File metadata
- Download URL: surface_distance-0.1-py3-none-any.whl
- Upload date:
- Size: 14.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cc837ca7cd269136a1e16382384f6b9193f4519dd4659b8dbdbb794e4073f768 |
|
MD5 | 8339080f4b0eb4ecec5fd92e26371526 |
|
BLAKE2b-256 | b06145e9641801e043497a92bda1aa7e87dd933eafa1eed1d6be8dfc9736f939 |