1. A method comprising: accessing a plurality of images, wherein one of the plurality of images is a reference image; defining weight masks each corresponding to one of the accessed plurality of images, said defining including calculating coefficients for each of the weight masks by: performing histogram alignment between the reference image and each other image in the plurality of images, and applying mismatch bias to the coefficients as a function of the performed histogram alignment; applying the defined weight masks to the corresponding images; and blending the plurality of images having the applied weight masks to produce a final image.