1. A method comprising: capturing, by an image sensor, a first plurality of images of a scene, wherein each image of the first plurality of images is captured using a different total exposure time (TET); based at least on the first plurality of images, determining a long TET, a short TET, and a TET sequence that includes the long TET and the short TET; capturing, by the image sensor, a second plurality of images of the scene, wherein the images in the second plurality of images are captured sequentially in an image sequence using a sequence of TETs corresponding to the TET sequence, wherein the image sequence includes a three-image sub-sequence of a first long-TET image captured using the long TET, followed by a short-TET image captured using the short TET, followed by a second long-TET image captured using the long TET; and based on one or more images in the image sequence, constructing an output image.