如何比较两个直方图并证明两个直方图之间存在匹配?
How to compare two histograms and prove that there is a match between the two histograms?
我想比较两个直方图并显示这两个直方图匹配在一起。
我想阅读这两张图片
显示他们的直方图,然后使用函数或任何代码来显示 hist1=hist2。
您可以使用归一化 euklid 距离作为相似性度量:
x0 = randn(1000,1);
x1 = randn(1000,1);
nbins = 100;
y0=hist(x0,nbins);
y1=hist(x1,nbins);
similarity = 1-norm(y1-y0)/norm(y0)
我想比较两个直方图并显示这两个直方图匹配在一起。 我想阅读这两张图片 显示他们的直方图,然后使用函数或任何代码来显示 hist1=hist2。
您可以使用归一化 euklid 距离作为相似性度量:
x0 = randn(1000,1);
x1 = randn(1000,1);
nbins = 100;
y0=hist(x0,nbins);
y1=hist(x1,nbins);
similarity = 1-norm(y1-y0)/norm(y0)