Perceptual similarity of closed contours