Suppose I have a picture and let two people mark regions within it. How can I measure the (dis)similarity of the two marked regions?
More mathematically, suppose I have a (filled) rectangle $A\subset \mathbb{R}$ and two "marked regions" $B\subset A$ and $C\subset A$. How can I measure the (dis)similarity between $B$ and $C$? To make it easier, $A, B, C$ can be made discrete because I'm working with images (that is, pixels).
I've had two ideas and written down their shortcomings to me:
- Minimal Euclidean distance: this is zero as soon as the regions intersect somewhere, but this does not mean that the two sets are the same.
- Jaccard index: this does not take into account the Euclidean geometry. If $B$ and $C$ do not intersect, the Jaccard index is 0, but this does not take into account whether they are close to each other in the plane or not.
Do you perhaps have a better idea for a distance metric?