compute average Label-Object distance