Fast mutual information of two images or signals

版本 1.6 (2.3 KB) 作者: Jose Delpiano
Optimized function for mutual information of two images or signals
16.3K 次下载
更新时间 2015/2/23

查看许可证

Usage: I=mi(A,B), where A and B are equally sized images/signals.
Function hist2 (included) is used to determine the joint histogram of the images/signals.

Assumptions: 1) 0*log(0)=0, 2) mutual information is obtained on the intersection between the supports of partial histograms.

Example (in mi_test.m):

disp('Test: Mutual information between two images')
load mri
A=D(:,:,8);
B=D(:,:,9);
mi(A,B)

disp('Test: Mutual information between two signals')
load garchdata
nasdaq = price2ret(NASDAQ);
nyse = price2ret(NYSE);
mi(nasdaq,nyse)

引用格式

Jose Delpiano (2025). Fast mutual information of two images or signals (https://www.mathworks.com/matlabcentral/fileexchange/13289-fast-mutual-information-of-two-images-or-signals), MATLAB Central File Exchange. 检索时间: .

MATLAB 版本兼容性
创建方式 R2008b
兼容任何版本
平台兼容性
Windows macOS Linux
致谢

启发作品: Image mutual information, image_MI.m

Community Treasure Hunt

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

Start Hunting!
版本 已发布 发行说明
1.6

Available as toolbox

1.5.0.0

Speed improvements suggested in comments by Andrew Hill.

1.1.0.0

Added support for signals (1D matrices) and for non-double images.

1.0.0.0

Needed modification of input arguments. Example added.