I want to compare two images of faces. I calculated their LBP-histograms. So now I need to compare these two histograms and get something that will tell how much these histograms are equal (0 - 100%).
There are many ways of solving this task, but authors of LBP method emphasize (Face Description with Local Binary Patterns: Application to Face Recognition. 2004) that Chi-Square distance perfoms better than Histogram intersection and Log-likelihood statistic.
Authors also show a formula of Chi-Square distance:
$$ \sum_{i=1}^{n} \cfrac{(x_i - y_i)^2} {(x_i + y_i)} $$
Where $n$ is a number of bins, $x_i$ is a value of first bin, $y_i$ is a value of second bin.
In some researches (for example The Quadratic-Chi Histogram Distance Family) I saw that the formula of Chi-Square distance is:
$$ \cfrac{1}{2}\sum_{i=1}^{n} \cfrac{(x_i - y_i)^2} {(x_i + y_i)} $$
And there http://www.itl.nist.gov/div898/handbook/eda/section3/eda35f.htm I see that formula of Chi-Square distance is:
$$ \sum_{i=1}^{n} \cfrac{(x_i - y_i)^2} {y_i} $$
I stuck with it. I have several questions:
- What expression should I use?
- How should I interpret a result of difference? I know that difference that is equal to 0 means that both histograms are equal, but how can I know when both histograms are totally different? Do I need to use a Chi-Square table for it? Or do I need to use a threshold? Basically I want to map difference to percents.
- Why these three expressions are different?