Defining perceptual metrics in shape space