Metric measures (medpy.metric
)#
This package provides a number of metric measures that e.g. can be used for testing and/or evaluation purposes on two binary masks (i.e. measuring their similarity) or distance between histograms.
Binary metrics (medpy.metric.binary
)#
Metrics to compare binary objects and classification results.
Compare two binary objects#
|
Dice coefficient |
|
Jaccard coefficient |
|
Hausdorff Distance. |
|
Average surface distance metric. |
|
Average symmetric surface distance. |
|
Precison. |
|
Recall. |
|
Sensitivity. |
|
Specificity. |
|
True positive rate. |
|
True negative rate. |
|
Positive predictive value. |
|
Relative absolute volume difference. |
Compare two sets of binary objects#
|
The true positive rate of distinct binary object detection. |
|
The false positive rate of distinct binary object detection. |
|
Average surface distance between objects. |
|
Average symmetric surface distance. |
Compare to sequences of binary objects#
|
Volume correlation. |
|
Volume change correlation. |
Image metrics (medpy.metric.image
)#
Some more image metrics (e.g. sls
and ssd
)
can be found in medpy.filter.image
.
|
Computes the mutual information (MI) (a measure of entropy) between two images. |
Histogram metrics (medpy.metric.histogram
)#
|
Chebyshev distance. |
|
Chebyshev negative distance. |
|
Chi-square distance. |
|
Correlation between two histograms. |
|
Correlation distance. |
|
Cosine simmilarity. |
|
Cosine simmilarity. |
|
Cosine simmilarity. |
|
Alternative implementation of the |
|
Equal to Minowski distance with \(p=2\). |
|
Fidelity based distance. |
|
Calculate the common part of two histograms. |
|
Turns the histogram intersection similarity into a distance measure for normalized, positive histograms. |
|
Jensen-Shannon divergence. |
|
Kullback-Leibler divergence. |
|
Equal to Minowski distance with \(p=1\). |
|
Minowski distance. |
|
Extension of |
|
Extension of |
|
Extension of |
|
Extension of |
|
Extension of |
|
Quadrativ forms metric. |
|
Calculate the bin-wise deviation between two histograms. |
|
Calculate the deviation between two histograms. |