1. A method of merging N images of a same scene into a single output image in an image processing system, the method comprising: determining an order of sharpness among the N images; determining vertical and horizontal offsets with respect to a sharpest image in the N images for other images in the N images and generating corresponding offset-free images; generating pixels of an intermediate image by combining corresponding pixels of the sharpest image and the offset-free images; and filtering noise from the intermediate image to generate the output image.