Skip to content

Histogram intersection return wrong distance #156

@FabRez

Description

@FabRez

Histogram intersection method returns $\rm 1 - H(I,M)$ instead of $\rm H(I,M)$.

From Swain and Ballard 1991, Histogram intersection is defined as :

$\rm H_{SW}(I,M) = \dfrac{\sum_i \min(I_i,M_i)}{\sum_i M_i}$

The class HistrogramIntersection, instead, calculates it as:

$\rm H_{FR}(I,M) = 1 - \dfrac{\sum_i \min(I_i,M_i)}{\sum_i M_i} = 1 - H_{SW}(I,M)$

This way the class calculates the "percentage" of non-intersection rather than that of the intersection of the two histograms.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions