SMIL 1.1.2
|
This module provides functions to evaluate the similarity between two images. The main usage may be to validate algorithms when comparing results of some algorithm against what is expected (the Ground Truth)
The following conventions are used in the definition of some indices for binary images :
Functions | |
template<typename T > | |
double | indexJaccard (const Image< T > &imGt, const Image< T > &imIn) |
indexJaccard() | |
template<typename T > | |
double | indexRuzicka (const Image< T > &imGt, const Image< T > &imIn) |
indexRuzicka() | |
template<typename T > | |
double | indexAccuracy (const Image< T > &imGt, const Image< T > &imIn, const T threshold=0) |
indexAccuracy() | |
template<typename T > | |
double | indexPrecision (const Image< T > &imGt, const Image< T > &imIn) |
indexPrecision() | |
template<typename T > | |
double | indexRecall (const Image< T > &imGt, const Image< T > &imIn) |
indexRecall() | |
template<typename T > | |
double | indexFScore (const Image< T > &imGt, const Image< T > &imIn, const double beta=1.) |
indexFScore() | |
template<typename T > | |
double | indexSensitivity (const Image< T > &imGt, const Image< T > &imIn) |
indexSensitivity() | |
template<typename T > | |
double | indexSpecificity (const Image< T > &imGt, const Image< T > &imIn) |
indexSpecificity() | |
template<typename T > | |
double | indexFallOut (const Image< T > &imGt, const Image< T > &imIn) |
indexFallOut() | |
template<typename T > | |
double | indexMissRate (const Image< T > &imGt, const Image< T > &imIn) |
indexMissRate() | |
template<typename T > | |
double | indexOverlap (const Image< T > &imGt, const Image< T > &imIn) |
indexOverlap() | |
template<typename T > | |
size_t | distanceHamming (const Image< T > &imGt, const Image< T > &imIn) |
distanceHamming() | |
template<typename T > | |
double | distanceHausdorff (const Image< T > &imGt, const Image< T > &imIn) |
distanceHausdorff() - | |
[in] | imGt | : Ground Truth image |
[in] | imIn | : image to verify |
Returns the Weighted Jaccard similarity coefficient, also known as Ruzicka coefficient - see indexJaccard()
[in] | imGt | : Ground Truth image |
[in] | imIn | : image to verify |
double indexAccuracy | ( | const Image< T > & | imGt, |
const Image< T > & | imIn, | ||
const T | threshold = 0 |
||
) |
Returns the Rand Index, also called Accuracy or Simple matching coefficient
threshold
[in] | imGt | : Ground Truth image |
[in] | imIn | : image to verify |
[in] | threshold | : difference between pixels accepted as equality. |
Returns, for binary images (see isBinary()), the Precision index, also called Positive prediction value
[in] | imGt | : Ground Truth image |
[in] | imIn | : image to verify |
Returns, for binary images (see isBinary()), the Recall index, also called Sensitivity or Hit rate or True Positive Rate
[in] | imGt | : Ground Truth image |
[in] | imIn | : image to verify |
double indexFScore | ( | const Image< T > & | imGt, |
const Image< T > & | imIn, | ||
const double | beta = 1. |
||
) |
Returns, for binary images (see isBinary()), the F-Score
between two images.
[in] | imGt | : Ground Truth image |
[in] | imIn | : image to verify |
[in] | beta | : coefficient (default value : 1. ) |
Returns, for binary images (see isBinary()), the Sensitivity, also called Recall, Hit rate or True Positive Rate
[in] | imGt | : Ground Truth image |
[in] | imIn | : image to verify |
Returns, for binary images (see isBinary()), the Specificity index, also called Selectivity or True negative rate
[in] | imGt | : Ground Truth image |
[in] | imIn | : image to verify |
Returns, for binary images (see isBinary()), the Fall Out index, also called False positive rate or False alarm rate
[in] | imGt | : Ground Truth image |
[in] | imIn | : image to verify |
Returns, for binary images (see isBinary()), the Miss Rate index, also called False negative rate
[in] | imGt | : Ground Truth image |
[in] | imIn | : image to verify |
Returns, for binary images (see isBinary()), the Overlap coefficient
[in] | imGt | : Ground Truth image |
[in] | imIn | : image to verify |
Returns the number of pixels with different values in the two images.
[in] | imGt | : Ground Truth image |
[in] | imIn | : image to verify |
[in] | imGt | : Ground Truth image |
[in] | imIn | : image to verify |