1. A method for calculating ambient light in a space, the method comprising obtaining a top view image of the space from an array of pixels; identifying an object in the image; assigning weights to pixels from the array of pixels based on locations of the pixels relative to the identified object in the image; calculating ambient light in the space based on the weighted pixels; and modulating ambient light in the space based on the calculated ambient light.