Perceived distance and the classification of distorted patterns.