NMI: Normalized mutual information (NMI).

View source: R/graph_funcs.R

NMIR Documentation

Normalized mutual information (NMI).

Description

NMI returns the normalized mutual information between two ms.image objects. The normalized mutual information is calculated as the mutual information divided by square-root of the product of the entropies. This function makes use of the functions available in infotheo R package.

Usage

NMI(x, y, numBins = 256)

Arguments

x

numeric array. Image 1 color intensity array.

y

numeric array. Image 2 (binary mask).

numBins

numeric. Number of bins for discretizing the image colors.

Value

NMI value between 0 and 1.

Author(s)

Paolo Inglese p.inglese14@imperial.ac.uk

References

Meyer, P. E. (2009). Infotheo: information-theoretic measures. R package. Version, 1(0).


SPUTNIK documentation built on Nov. 24, 2022, 5:06 p.m.