A digital camera sensor contains an array of light-sensitive photosite squares, each containing a photo diode that converts light photons into electrons. The electrons are stored in an electron well within the photosite. A processor then examines data from neighboring pixels to estimate the red, green, and blue color values for each pixel through a process called demosaicing. The sensor operates similarly to the human visual system by gathering light information and processing it to produce an image.