making opencv reference euclidean distance equivalent