I am doing project on this and I am stuck up at this point of comparing the histograms using chi-square distance. Please give answer to my question so that I can proceed ahead. thanks a lotttt!!!
I am using chi-square distance to compare the histograms of two images and I am getting zero as minimum distance for both the cases: i) Match found ii) No match found. So how should I choose the threshold to differentiate between these two cases?
2 次查看(过去 30 天)
显示 更早的评论
Code is here:
load('HD.mat'); for i=1:11 distance = pdist2( H(i),HiS,'chisq'); md=min(min(distance(i))); if md==0 val=1; else val=0; end
end
if val==1
msgbox('Person present in database');
else
msgbox('Person not present in database');
end
Please also tell me if match is found then how to retrieve the image from database?? Thanks in Advance.
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Hypothesis Tests 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!