1. A method comprising: determining a histogram of intensity values for pixels in image sensor data, wherein the histogram is bimodal; determining a breakpoint between the two modes, wherein the histogram includes a first distribution of intensity values below the breakpoint and a second distribution of intensity values above the breakpoint; and generating output intensity values by: compressing the first distribution of intensity values of the pixels with intensity values below the breakpoint, stretching the second distribution of intensity values of the pixels with intensity values above the breakpoint, and generating an output image based on the output intensity values.