1. A method of processing frames obtained by multiple exposures, the method comprising: categorizing, by at least one processor, a plurality of frames into one of a reference frame and a target frame, the plurality of frames captured by multiple exposures; compensating for global motion resulting from motion of a capturing apparatus capturing an object; and compensating for local motion based on a joint histogram between the reference frame and the target frame, the local motion resulting from motion of the object.