1. A method for generating an image, comprising: determining an estimated high resolution image from a plurality of low resolution images; determining a plurality of estimated low resolution images by down-sampling the estimated high resolution image; and generating a corrected high resolution image by iteratively: identifying a set of occluded pixels in the estimated high resolution image and a set of non-occluded pixels in the estimated high resolution image; determining a value of a penalty function, wherein the penalty function is based on a difference between the plurality of estimated low resolution images and the plurality of low resolution images; and adjusting pixel values of the estimated high resolution image to reduce the value of the penalty function for the set of non-occluded pixels.