1. Apparatus comprising a camera, a processor, and a plurality of optical elements, wherein: the apparatus is adapted to analyze light from a scene, which light comprises a direct component and a global component, the direct component being light that travels directly to the apparatus from the scene, and the global component being light that is scattered before reaching the apparatus and that does not travel directly from the scene to the apparatus; the plurality of optical elements are configured to create a plurality of images when light from the scene passes though the plurality of optical elements during an exposure, each respective image (out of the plurality of images) is created by the light passing through a respective optical element (out of the plurality of optical elements) and consists of a first region and a second region; light in the first region consists of only the global component; light in the second region comprises both the direct component and the global component; and the processor is configured to compute, based on sensor measurements of light in the first region, a function that approximates intensity of the global component, to determine, based on the function, an estimated intensity of the global component in the second region, to determine, based on sensor measurements of light in the second region, a measured intensity of the global component plus the direct component, and to estimate intensity of the direct component by subtracting the estimated intensity of the global component in the second region from the measured intensity of the global plus direct components in the second region.