How the human visual system computes perceived shades of black, gray or white from the pattern of relative intensities of light in the retinal image.