relative mutual information Uxy

Uxy calculates the relative mutual information (and other quantities) derived from grey-value cooccurence matrices
1 Download
Updated 16 Oct 2024

View License

The function Uxy and the two subfunctions that are called by Uxy calculate the relative mutual information associated to grey-value cooccurence matrices. The function simply implements the equations given in the cited papers by Nowosad and Stepinski (2019) and by Haralick (1973). Please consult the Nowosad and Stepinski paper for the definitions of the output (Hygx stands for H(y|x), the rest should be obvious)
The input Y may be a simple matrix (grey value image) or an array of images. The input thr is a structure (or, if several images are analysed at once, an array of structures). thr.values (or thr(k).values) contains threshold values that are chosen to segment the image(s) into separate grey value levels. The function greyThreshO, which again calls the function multithresh (Otsu's method) from the image processing toolbox, may be used for this. The function is available at the Matlab Central as well, as part of my submission deltaEtAl (see and download there). However, the users may supply their own function to provide the structure thr, in that case, the image processing toolbox is not required. If the input iNN is set to 1, only the four next neighbours are considered to calculate the cooccurence matrices; if it is set to 0, all eight next neighbours will be taken into account. The input iguck should be integer. If it is different from zero, the outputs of the function Uxy are visualised in figure(iguck). If iguck==0, there is no graphic output.

Cite As

Mathias Anton (2025). relative mutual information Uxy (https://uk.mathworks.com/matlabcentral/fileexchange/174040-relative-mutual-information-uxy), MATLAB Central File Exchange. Retrieved .

Nowosad, Jakub, and Tomasz F. Stepinski. “Information Theory as a Consistent Framework for Quantification and Classification of Landscape Patterns.” Landscape Ecology, vol. 34, no. 9, Springer Science and Business Media LLC, June 2019, pp. 2091–101, doi:10.1007/s10980-019-00830-x.

View more styles

Haralick, Robert M., et al. “Textural Features for Image Classification.” IEEE Transactions on Systems, Man, and Cybernetics, vol. SMC-3, no. 6, Institute of Electrical and Electronics Engineers (IEEE), Nov. 1973, pp. 610–21, doi:10.1109/tsmc.1973.4309314.

View more styles
MATLAB Release Compatibility
Created with R2024b
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.0.1

missing function supplied

1.0.0