how to compare histograms
9 ビュー (過去 30 日間)
古いコメントを表示
i want to compare two histograms of lbp images.
i tried using pdist2 but it is showing erroneous results.
please help
2 件のコメント
Image Analyst
2015 年 4 月 18 日
So you have two vectors of 256 elements each, which are most likely going to be different for each index. So, what does "compare" mean to you? And do you know that two images can have the same histogram and look totally different?
回答 (1 件)
Youssef Khmou
2015 年 4 月 19 日
Many approaches exist for this purpose, the easiest way is the root mean square error metric, the minimum value means best match from all samples, f1 and f2 are two normalized histograms that we want to compare :
rmse= sqrt(mean((f1-f2).^2));
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Histograms についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!