資源簡介
% Compute Mutual Information and Joint entropy of two images
% Takes two images and returns the mutual information and joint
% entropy. For implementing this function also download function
% joint_histogram.m in my file exchange.
%
% written by Amir Pasha Mahmoudzadeh
% Wright State University
%
代碼片段和文件信息
function?h=joint_histogram(xy)
%
%?Takes?a?pair?of?images?of?equal?size?and?returns?the?2d?joint?histogram.
%?used?for?MI?calculation
%?
%?written?by?Amir?Pasha?Mahmoudzadeh
%?Wright?State?University
%?Biomedical?Imaging?Lab
rows=size(x1);
cols=size(y2);
N=256;
h=zeros(NN);
for?i=1:rows;???
??for?j=1:cols;???
????h(x(ij)+1y(ij)+1)=?h(x(ij)+1y(ij)+1)+1;
??end
end
imshow(h)
end
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件????????1123??2013-04-12?11:23??MutualInformation\MutualInformation.m
?????文件?????????426??2013-04-02?16:09??MutualInformation\joint_histogram.m
?????文件????????1344??2013-04-02?16:09??MutualInformation\license.txt
?????目錄???????????0??2013-04-12?11:12??MutualInformation\
- 上一篇:matlab工具箱常用100種算法
- 下一篇:牛頓外點罰函數法
評論
共有 條評論