Voronoi Metric & Contrast Lab

Compare Voronoi diagrams formed by ordinary metrics and by asymmetric contrasts/divergences. Every pixel is assigned to the site minimizing the selected cost.

20
3.0
3.0

Selected site #1

Click or drag a black site in either diagram, or edit its coordinates here.

The contrast examples are defined on positive coordinates, so the visualization uses a small positive offset near the axes. For Bregman power q = 2, the contrast reduces to squared Euclidean geometry.