Biomedical Image Analysis Library
The Biomedical Image Analysis Library is a poweful tool for developers, physicians, researchers, engineers, and so on.
Bial::Statistics Namespace Reference

Functions

template<template< class D > class C, class D >
float Average (C< D > data)
 Computes and returns the average of the intensities. More...
 
template<template< class D > class C, class D >
float Average (C< D > data, size_t first, size_t size)
 Computes and returns the average of the intensities. More...
 
template<class D >
float Baddeley (const Image< D > &src_distance_img, const Image< D > &tgt_distance_img)
 Computes Baddeley's measure. See A.J. Baddeley, An error metric for binary images, Robust Computer Vision: More...
 
template<template< class D > class C, class D >
float Dice (const C< D > &src_label, const C< D > &tgt_label)
 Computes and returns the value given by Dice metric as comparing src_label and tgt_label. More...
 
template<class D >
float Dice (const Image< D > &src_label, const Image< D > &tgt_label, float dist)
 Computes and returns the value given by Dice metric as comparing src_label and tgt_label. This function was created to compute the statistics comparing two edge or boundaries, instead of two regions. Use the overloaded function without 'dist' parameter for comparing regions. More...
 
template<template< class D > class C, class D >
float Jaccard (const C< D > &src_label, const C< D > &tgt_label)
 Computes and returns the value given by Jaccard metric as comparing src_label and tgt_label. More...
 
template<class D >
float Jaccard (const Image< D > &src_label, const Image< D > &tgt_label, float dist)
 Computes and returns the value given by Jaccard metric as comparing src_label and tgt_label. This function was created to compute the statistics comparing two edge or boundaries, instead of two regions. Use the overloaded function without 'dist' parameter for comparing regions. More...
 
template<template< class D > class C, class D >
float Kappa (const C< D > &src_label, const C< D > &tgt_label)
 Computes and returns the value given by Kappa metric as comparing src_label and tgt_label. More...
 
template<class D >
float Kappa (const Image< D > &src_label, const Image< D > &tgt_label, float dist)
 Computes and returns the value given by Kappa metric as comparing src_label and tgt_label. This function was created to compute the statistics comparing two edge or boundaries, instead of two regions. Use the overloaded function without 'dist' parameter for comparing regions. More...
 
template<template< class D > class C, class D >
MedianAbsoluteDeviation (const C< D > &data)
 Computes and returns the median absolute deviation. More...
 
template<template< class D > class C, class D >
float ObservedAgreement (const C< D > &src_label, const C< D > &tgt_label)
 Computes and returns the value given by Observed Agreement metric as comparing src_label and tgt_label. More...
 
template<class D >
float ObservedAgreement (const Image< D > &src_label, const Image< D > &tgt_label, float dist)
 Computes and returns the value given by Observed Agreement metric as comparing src_label and tgt_label. This function was created to compute the statistics comparing two edge or boundaries, instead of two regions. Use the overloaded function without 'dist' parameter for comparing regions. More...
 
template<template< class D > class C, class D >
std::tuple< size_t, size_t, size_t, size_t > PositiveNegative (const C< D > &src_label, const C< D > &tgt_label)
 Computes and returns the number of true positive, true negative, false positive, and false negative pixels as comparing src_label to tgt_label. More...
 
template<class D >
std::tuple< size_t, size_t, size_t, size_t > PositiveNegative (const Image< D > &src_label, const Image< D > &tgt_label, float dist)
 Computes and returns the number of true positive, true negative, false positive, and false negative pixels as comparing src_label to tgt_label. This function was created to compute the statistics comparing two edge or boundaries, instead of two regions. Use the overloaded function without 'dist' parameter for comparing regions. More...
 
template<template< class D > class C, class D >
size_t TruePositive (const C< D > &src_label, const C< D > &tgt_label)
 Computes and returns the number of true positive pixels as comparing src_label and tgt_label. More...
 
template<class D >
size_t TruePositive (const Image< D > &src_label, const Image< D > &tgt_label, float dist)
 Computes and returns the number of true positive pixels as comparing src_label and tgt_label.
This function was created to compute the statistics comparing two edge or boundaries, instead of two regions.
Use the overloaded function without 'dist' parameter for comparing regions. More...
 
template<template< class D > class C, class D >
size_t TrueNegative (const C< D > &src_label, const C< D > &tgt_label)
 Computes and returns the number of true negative pixels as comparing src_label and tgt_label. More...
 
template<class D >
size_t TrueNegative (const Image< D > &src_label, const Image< D > &tgt_label, float dist)
 Computes and returns the number of true negative pixels as comparing src_label and tgt_label. This function was created to compute the statistics comparing two edge or boundaries, instead of two regions. Use the overloaded function without 'dist' parameter for comparing regions. More...
 
template<template< class D > class C, class D >
size_t FalsePositive (const C< D > &src_label, const C< D > &tgt_label)
 Computes and returns the number of false positive pixels as validating src_label to tgt_label. More...
 
template<class D >
size_t FalsePositive (const Image< D > &src_label, const Image< D > &tgt_label, float dist)
 Computes and returns the number of false positive pixels as validating src_label to tgt_label. This function was created to compute the statistics comparing two edge or boundaries, instead of two regions. Use the overloaded function without 'dist' parameter for comparing regions. More...
 
template<template< class D > class C, class D >
size_t FalseNegative (const C< D > &src_label, const C< D > &tgt_label)
 Computes and returns the number of false negative pixels as validating src_label to tgt_label. More...
 
template<class D >
size_t FalseNegative (const Image< D > &src_label, const Image< D > &tgt_label, float dist)
 Computes and returns the number of false negative pixels as validating src_label to tgt_label. This function was created to compute the statistics comparing two edge or boundaries, instead of two regions. Use the overloaded function without 'dist' parameter for comparing regions. More...
 
template<template< class D > class C, class D >
float StandardDeviation (C< D > data)
 Computes and returns the standard deviation of the intensities. More...
 
template<template< class D > class C, class D >
float StandardDeviation (C< D > data, size_t first, size_t size)
 Computes and returns the standard deviation of the intensities. More...
 
template<template< class D > class C, class D >
float StandardDeviation (C< D > data, float average)
 Computes and returns the standard deviation of the intensities. More...
 
template<template< class D > class C, class D >
float StandardDeviation (C< D > data, size_t first, size_t size, float average)
 Computes and returns the standard deviation of the intensities. More...
 

Function Documentation

template<template< class D > class C, class D >
float Bial::Statistics::Average ( C< D >  data)

Computes and returns the average of the intensities.

Date
2013/Nov/26
Parameters
dataInput data.
Returns
The average of the intensities.
Warning
none.
template<template< class D > class C, class D >
float Bial::Statistics::Average ( C< D >  data,
size_t  first,
size_t  size 
)

Computes and returns the average of the intensities.

Date
2013/Dec/06
Parameters
dataInput data.
firstFirst element of input container.
sizeNumber of elements to be used.
Returns
The average of the intensities.
Warning
none.
template<class D >
float Bial::Statistics::Baddeley ( const Image< D > &  src_distance_img,
const Image< D > &  tgt_distance_img 
)

Computes Baddeley's measure. See A.J. Baddeley, An error metric for binary images, Robust Computer Vision:

Date
2016/Feb/01
Parameters
src_distance_imgA distance transform from a binary boundary image.
tgt_distance_imgA distance transform from a binary boundary image.
Returns
Baddeley's measure, modified to run only over the union of boundary pixels. Quality of Vision Algorithms, Wichmann Verlag Karlsruhe, 1992, pp. 59–78.
Warning
none.
template<template< class D > class C, class D >
float Bial::Statistics::Dice ( const C< D > &  src_label,
const C< D > &  tgt_label 
)

Computes and returns the value given by Dice metric as comparing src_label and tgt_label.

Date
2013/Nov/14
Parameters
src_labelA binary label data.
tgt_labelA binary label data.
Returns
The value given by Dice metric as comparing src_label and tgt_label.
Warning
none.
template<class D >
float Bial::Statistics::Dice ( const Image< D > &  src_label,
const Image< D > &  tgt_label,
float  dist 
)

Computes and returns the value given by Dice metric as comparing src_label and tgt_label. This function was created to compute the statistics comparing two edge or boundaries, instead of two regions. Use the overloaded function without 'dist' parameter for comparing regions.

Date
2015/May/26
Parameters
src_labelA binary label data.
tgt_labelA binary label data.
distMaximum distance between src and tgt labels.
Returns
The value given by Dice metric as comparing src_label and tgt_label.
Warning
none.
template<template< class D > class C, class D >
size_t Bial::Statistics::FalseNegative ( const C< D > &  src_label,
const C< D > &  tgt_label 
)

Computes and returns the number of false negative pixels as validating src_label to tgt_label.

Date
2013/Nov/14
Parameters
src_labelA binary label data.
tgt_labelA binary label data.
Returns
The number of false negative pixels as validating src_label to tgt_label.
Warning
none.
template<class D >
size_t Bial::Statistics::FalseNegative ( const Image< D > &  src_label,
const Image< D > &  tgt_label,
float  dist 
)

Computes and returns the number of false negative pixels as validating src_label to tgt_label. This function was created to compute the statistics comparing two edge or boundaries, instead of two regions. Use the overloaded function without 'dist' parameter for comparing regions.

Date
2015/May/26
Parameters
src_labelA binary label data.
tgt_labelA binary label data.
distMaximum distance between src and tgt labels.
Returns
The number of false negative pixels as validating src_label to tgt_label.
Warning
none.
template<template< class D > class C, class D >
size_t Bial::Statistics::FalsePositive ( const C< D > &  src_label,
const C< D > &  tgt_label 
)

Computes and returns the number of false positive pixels as validating src_label to tgt_label.

Date
2013/Nov/14
Parameters
src_labelA binary label data.
tgt_labelA binary label data.
Returns
The number of false positive pixels as validating src_label to tgt_label.
Warning
none.
template<class D >
size_t Bial::Statistics::FalsePositive ( const Image< D > &  src_label,
const Image< D > &  tgt_label,
float  dist 
)

Computes and returns the number of false positive pixels as validating src_label to tgt_label. This function was created to compute the statistics comparing two edge or boundaries, instead of two regions. Use the overloaded function without 'dist' parameter for comparing regions.

Date
2015/May/26
Parameters
src_labelA binary label data.
tgt_labelA binary label data.
distMaximum distance between src and tgt labels.
Returns
The number of false positive pixels as validating src_label to tgt_label.
Warning
none.
template<template< class D > class C, class D >
float Bial::Statistics::Jaccard ( const C< D > &  src_label,
const C< D > &  tgt_label 
)

Computes and returns the value given by Jaccard metric as comparing src_label and tgt_label.

Date
2013/Nov/14
Parameters
src_labelA binary label data.
tgt_labelA binary label data.
Returns
The value given by Jaccard metric as comparing src_label and tgt_label.
Warning
none.
template<class D >
float Bial::Statistics::Jaccard ( const Image< D > &  src_label,
const Image< D > &  tgt_label,
float  dist 
)

Computes and returns the value given by Jaccard metric as comparing src_label and tgt_label. This function was created to compute the statistics comparing two edge or boundaries, instead of two regions. Use the overloaded function without 'dist' parameter for comparing regions.

Date
2015/May/26
Parameters
src_labelA binary label data.
tgt_labelA binary label data.
distMaximum distance between src and tgt labels.
Returns
The value given by Jaccard metric as comparing src_label and tgt_label.
Warning
none.
template<template< class D > class C, class D >
float Bial::Statistics::Kappa ( const C< D > &  src_label,
const C< D > &  tgt_label 
)

Computes and returns the value given by Kappa metric as comparing src_label and tgt_label.

Date
2013/Nov/14
Parameters
src_labelA binary label data.
tgt_labelA binary label data.
Returns
The value given by Kappa metric as comparing src_label and tgt_label.
Warning
none.
template<class D >
float Bial::Statistics::Kappa ( const Image< D > &  src_label,
const Image< D > &  tgt_label,
float  dist 
)

Computes and returns the value given by Kappa metric as comparing src_label and tgt_label. This function was created to compute the statistics comparing two edge or boundaries, instead of two regions. Use the overloaded function without 'dist' parameter for comparing regions.

Date
2015/May/26
Parameters
src_labelA binary label data.
tgt_labelA binary label data.
distMaximum distance between src and tgt labels.
Returns
The value given by Kappa metric as comparing src_label and tgt_label.
Warning
none.
template<template< class D > class C, class D >
D Bial::Statistics::MedianAbsoluteDeviation ( const C< D > &  data)

Computes and returns the median absolute deviation.

Date
2012/Dec/04
Parameters
dataInput data.
Returns
The median absolute deviation.
Warning
none.
template<template< class D > class C, class D >
float Bial::Statistics::ObservedAgreement ( const C< D > &  src_label,
const C< D > &  tgt_label 
)

Computes and returns the value given by Observed Agreement metric as comparing src_label and tgt_label.

Date
2013/Nov/14
Parameters
src_labelA binary label data.
tgt_labelA binary label data.
Returns
The value given by Observed Agreement metric as comparing src_label and tgt_label.
Warning
none.
template<class D >
float Bial::Statistics::ObservedAgreement ( const Image< D > &  src_label,
const Image< D > &  tgt_label,
float  dist 
)

Computes and returns the value given by Observed Agreement metric as comparing src_label and tgt_label. This function was created to compute the statistics comparing two edge or boundaries, instead of two regions. Use the overloaded function without 'dist' parameter for comparing regions.

Date
2015/May/26
Parameters
src_labelA binary label data.
tgt_labelA binary label data.
distMaximum distance between src and tgt labels.
Returns
The value given by Observed Agreement metric as comparing src_label and tgt_label.
Warning
none.
template<template< class D > class C, class D >
std::tuple< size_t, size_t, size_t, size_t > Bial::Statistics::PositiveNegative ( const C< D > &  src_label,
const C< D > &  tgt_label 
)

Computes and returns the number of true positive, true negative, false positive, and false negative pixels as comparing src_label to tgt_label.

Date
2015/May/26
Parameters
src_labelA binary label data.
tgt_labelA binary label data.
Returns
The number of true positive, true negative, false positive, and false negative pixels as comparing src_label to tgt_label.
Warning
none.
template<class D >
std::tuple< size_t, size_t, size_t, size_t > Bial::Statistics::PositiveNegative ( const Image< D > &  src_label,
const Image< D > &  tgt_label,
float  dist 
)

Computes and returns the number of true positive, true negative, false positive, and false negative pixels as comparing src_label to tgt_label. This function was created to compute the statistics comparing two edge or boundaries, instead of two regions. Use the overloaded function without 'dist' parameter for comparing regions.

Date
2015/May/26
Parameters
src_labelA binary label data.
tgt_labelA binary label data.
distA maximum threshold for the distance between src and tgt labels.
Returns
The number of true positive, true negative, false positive, and false negative pixels as comparing src_label to tgt_label.
Warning
none.
template<template< class D > class C, class D >
float Bial::Statistics::StandardDeviation ( C< D >  data)

Computes and returns the standard deviation of the intensities.

Date
2013/Nov/26
Parameters
dataInput data.
Returns
The standard deviation of the intensities.
Warning
none.
template<template< class D > class C, class D >
float Bial::Statistics::StandardDeviation ( C< D >  data,
size_t  first,
size_t  size 
)

Computes and returns the standard deviation of the intensities.

Date
2013/Dec/06
Parameters
dataInput data.
firstFirst element of input container.
sizeNumber of elements to be used.
Returns
The standard deviation of the intensities.
Warning
none.
template<template< class D > class C, class D >
float Bial::Statistics::StandardDeviation ( C< D >  data,
float  average 
)

Computes and returns the standard deviation of the intensities.

Date
2013/Nov/26
Parameters
dataInput data.
averageThe average of the intensity of the input data.
Returns
The standard deviation of the intensities.
Warning
none.
template<template< class D > class C, class D >
float Bial::Statistics::StandardDeviation ( C< D >  data,
size_t  first,
size_t  size,
float  average 
)

Computes and returns the standard deviation of the intensities.

Date
2013/Dec/06
Parameters
dataInput data.
firstFirst element of input container.
sizeNumber of elements to be used.
averageThe average of the intensity of the input data.
Returns
The standard deviation of the intensities.
Warning
none.
template<template< class D > class C, class D >
size_t Bial::Statistics::TrueNegative ( const C< D > &  src_label,
const C< D > &  tgt_label 
)

Computes and returns the number of true negative pixels as comparing src_label and tgt_label.

Date
2013/Nov/14
Parameters
src_labelA binary label data.
tgt_labelA binary label data.
Returns
The number of true negative pixels as comparing src_label and tgt_label.
Warning
none.
template<class D >
size_t Bial::Statistics::TrueNegative ( const Image< D > &  src_label,
const Image< D > &  tgt_label,
float  dist 
)

Computes and returns the number of true negative pixels as comparing src_label and tgt_label. This function was created to compute the statistics comparing two edge or boundaries, instead of two regions. Use the overloaded function without 'dist' parameter for comparing regions.

Date
2015/May/26
Parameters
src_labelA binary label data.
tgt_labelA binary label data.
distMaximum distance between src and tgt labels.
Returns
The number of true negative pixels as comparing src_label and tgt_label.
Warning
none.
template<template< class D > class C, class D >
size_t Bial::Statistics::TruePositive ( const C< D > &  src_label,
const C< D > &  tgt_label 
)

Computes and returns the number of true positive pixels as comparing src_label and tgt_label.

Date
2013/Nov/14
Parameters
src_labelA binary label data.
tgt_labelA binary label data.
Returns
The number of true positive pixels as comparing src_label and tgt_label.
Warning
none.
template<class D >
size_t Bial::Statistics::TruePositive ( const Image< D > &  src_label,
const Image< D > &  tgt_label,
float  dist 
)

Computes and returns the number of true positive pixels as comparing src_label and tgt_label.
This function was created to compute the statistics comparing two edge or boundaries, instead of two regions.
Use the overloaded function without 'dist' parameter for comparing regions.

Date
2015/May/26
Parameters
src_labelA binary label data.
tgt_labelA binary label data.
distMaximum distance between src and tgt labels.
Returns
The number of true positive pixels as comparing src_label and tgt_label.
Warning
none.