1. A method for exposure control in a camera, the method comprising: generating a depth map for an image frame to be captured by the camera; determining, based on the depth map, one or more objects located either closest in distance to the camera or furthest in distance from the camera; selecting a portion of the image frame that includes the one or more objects closest in distance to the camera or furthest in distance from the camera; measuring an amount of light in the selected portion of the image frame; obtaining exposure data associated with the portion of the image frame based on the measured amount of light in the selected portion of the image frame; and controlling an amount of exposure only for the portion of the image frame based on depth information associated with the depth map and the exposure data.