HdrHistogram / hdrhistogram-go

A pure Go implementation of Gil Tene's HDR Histogram.
MIT License
435 stars 64 forks source link

compare two histogram image #50

Open zhuochengs opened 2 years ago

zhuochengs commented 2 years ago

hello, I have a question: how to use your project to implement similarity comparison of two histogram images?

ahothan commented 2 years ago

Could you describe your use case for comparing 2 histograms? Exact equality would mean that all buckets have exactly the same count, but perhaps you only want a subjective near equality?

giltene commented 2 years ago

If you are asking about a non-mechanical visual comparison, I usually use tools like http://hdrhistogram.github.io/HdrHistogram/plotFiles.html or https://github.com/HdrHistogram/HdrHistogramWidget to plot histogram data and stare at it. For a mechanical comparison that trues to answer a “are these similar?” question, I don’t have a good answer…

zhuochengs commented 2 years ago

Could you describe your use case for comparing 2 histograms? Exact equality would mean that all buckets have exactly the same count, but perhaps you only want a subjective near equality?

yes, I just want a similar near equality