1. An apparatus for optimizing image quality based on scene content comprising: a sensor for generating a sequence of frames, where each frame in the sequence of frames comprises content representing a scene; and a digital processor, coupled to the sensor, for establishing a window that defines a number of input frames, a subset of frames from the sequence of frames generated by the sensor, for performing scene content analysis on the number of input frames in the window, and for aligning and combining the number of frames according to a respective weight of each of the number of frames in the window to form one or more output frames as the sequence of frames are generated from the sensor, wherein the respective weight is computed based on at least one of noise levels, light levels, amount of motion in a frame, and focus settings, wherein sensor parameters and combining parameters are adjusted based on scene content and the number of input frames in the window is dynamically adjusted based on the scene content in one or more of the input frames.