1. A method of generating a high dynamic range (HDR) image, the method comprising: obtaining an image sequence including images having same exposure times; obtaining a plurality of still images with different exposure times, which temporally correspond to at least one of the images included in the image sequence; generating a matched image of the plurality of the still images by using the image sequence; determining an occlusion region from the matched image, based on a difference in pixel value among the plurality of still images and the matched image; and generating the HDR image from the matched image, wherein the HDR image includes a corrected occlusion region corresponding to the determined occlusion region.