Use of distortion metrics or a particular distance between probe pattern and reference templates