1. A method for tone-mapping a first image frame in a sequence of image frames, comprising: applying a spatiotemporal filter to each pixel of the first image frame, based on a forward optical flow and a backward optical flow, to produce a base layer image, wherein applying the spatiotemporal filter to each pixel of the first image frame comprises: retrieving a temporal neighborhood of image frames associated with the first image frame comprising a first quantity of image frames captured before the first image frame and a second quantity of image frames captured after the first image frame, and computing spatial permeability maps corresponding to the first image frame and each frame of the first quantity of image frames and the second quantity of image frames; applying a temporal filter to each pixel of the first image frame, based on the forward optical flow and the backward optical flow, to produce a temporally filtered frame; producing a detail layer image based on the base layer image and the temporally filtered frame; applying a first tone curve to the base layer image to produce a tone-mapped base layer image; applying a second tone curve to the detail layer to produce a tone-mapped detail layer image; and combining the tone-mapped base layer image with the tone-mapped detail layer image to produce a tone-mapped image frame.