The theory of perceptual constancy is the idea that despite changes in sensory input, our perception of objects remains relatively stable. This means that we can recognize and understand objects even when they appear different due to changes in lighting, distance, or viewing angle.