A method for reducing intensity variations in a video image stream depicting a scene, the method comprising: capturing (S202), using an image sensor set to a first sensor setting, a first frame of the video image stream, wherein the first sensor setting is one or more chosen from the group comprising a sensor exposure time and a sensor gain; detecting (S204) a local change in intensity values in a portion of the first frame as compared with a frame preceding the first frame, the frame preceding the first frame being captured using the image sensor set to the first sensor setting, wherein the portion of the first frame represents a first area of the scene; determining (S206) a second sensor setting based on the intensity values in the first frame , wherein the second sensor setting is said one or more chosen from the group comprising the sensor exposure time and the sensor gain; capturing (S208), using the image sensor set to the second sensor setting, a second frame of the video image stream, the second frame being subsequent to the first frame ; creating (S210) a local tone mapping mask being an image mask comprising information related to a tone mapping of an image, wherein a local tone mapping of the local tone mapping mask in the first area of the scene is different from a local tone mapping of the local tone mapping mask in an area outside the first area of the scene, wherein the local tone mapping in the first area of the scene is based on the second sensor setting, and wherein the local tone mapping in the area outside the first area of the scene is based on a relation between the first sensor setting and the second sensor setting; and applying (S212) the local tone mapping mask to the second frame of the video image stream. capturing (S202), using an image sensor set to a first sensor setting, a first frame of the video image stream, wherein the first sensor setting is one or more chosen from the group comprising a sensor exposure time and a sensor gain; detecting (S204) a local change in intensity values in a portion of the first frame as compared with a frame preceding the first frame, the frame preceding the first frame being captured using the image sensor set to the first sensor setting, wherein the portion of the first frame represents a first area of the scene; determining (S206) a second sensor setting based on the intensity values in the first frame , wherein the second sensor setting is said one or more chosen from the group comprising the sensor exposure time and the sensor gain; capturing (S208), using the image sensor set to the second sensor setting, a second frame of the video image stream, the second frame being subsequent to the first frame ; creating (S210) a local tone mapping mask being an image mask comprising information related to a tone mapping of an image, wherein a local tone mapping of the local tone mapping mask in the first area of the scene is different from a local tone mapping of the local tone mapping mask in an area outside the first area of the scene, wherein the local tone mapping in the first area of the scene is based on the second sensor setting, and wherein the local tone mapping in the area outside the first area of the scene is based on a relation between the first sensor setting and the second sensor setting; and applying (S212) the local tone mapping mask to the second frame of the video image stream. <EOS>