clc
clear all
img=imread('3.jpg');
p=imhist(img);
L=length(p);
sum=0;
for i=1:L
for j=1:L
sum=sum+((p(i)-p(j))*(p(i)-p(j)));
end
end
result=sum/(2*256*256)
直方图-----方差
猜你喜欢
转载自blog.csdn.net/bj21002000/article/details/108427964
今日推荐
周排行