The optimal distance measure for object detection | Synapse