Skip to main content

Tools for evaluating predictions on Simple-ITK Images

Project description

Segmentation_Evaluation_Tools

There are a set of tools for creating quantitative comparison metrics based on ground truth and prediction SITK Image handles

Installation

pip install SegmentationEvaluationTools

Usage

from SegmentationEvaluationTools.SIKOverlapTools import calculate_overlap_measures, determine_sensitivity, 
determine_false_positive_rate_and_false_volume, sitk

truth_handle_base = sitk.ReadImage(image_path)
prediction_handle_base = sitk.ReadImage(prediction_path)

overlap_measures = calculate_overlap_measures(prediction_handle_base, truth_handle_base, measure_as_multiple_sites=False, perform_distance_measures=False)

fp_measures = determine_false_positive_rate_and_false_volume(prediction_handle_base, truth_handle_base)

sensitivity_measures = deteremine_sensitivity(prediction_handle=prediction_handle_base, truth_handle_base)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

SegmentationEvaluationTools-0.0.9.tar.gz (5.2 kB view hashes)

Uploaded Source

Built Distribution

SegmentationEvaluationTools-0.0.9-py3-none-any.whl (18.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page