Merging images
AssigneeArcsoft (Shanghai) Technology Company, Ltd
InventorsQiPeng Mei, Liangkui Feng, Kaixuan Mao, Yushan Huang, Weining Sun
Life of this patent
Estimating the term…
Abstract
A method for merging first and second images includes determining a pixel difference image from the first and the second images, determining first and second locations of the foreground subject from the pixel difference image, determining a minimum path of values from the pixel difference image for a region between the first and the second locations of the foreground subject, forming a merged image by stitching the first and the second images along the minimum path, and adjusting pixels of the merged image within a width of the minimum path.
Claims18
A method to merge first and second images having a foreground subject at different locations of a same background to form a merged image, comprising:
- determining, by a processor, a pixel difference image from the first and the second images, wherein each pixel of the pixel difference image comprises an absolute difference between corresponding pixels in the first and the second images;
- from the pixel difference image, determining, by the processor, first and second locations of the foreground subject in the first and the second images, respectively;
- for a region between the first and the second locations of the foreground subject, determining, by the processor, a minimum path of values extending from a top to a bottom of the merged image from the pixel difference image;
- forming, by the processor, the merged image by stitching the first and the second images along the minimum path by using pixels from the first image on a first side of the minimum path and using pixels from the second image on a second side of the minimum path;
- and
- displaying the merged image.
A non-transitory computer-readable storage medium encoded with executable instructions for execution by a processor to merge first and second images having a foreground subject at different locations of a same background to form a merged image, the instructions comprising:
- determining a pixel difference image from the first and the second images, wherein each pixel of the pixel difference image comprises an absolute difference between corresponding pixels in the first and the second images;
- from the pixel difference image, determining first and second locations of the foreground subject in the first and the second images, respectively;
- for a region between the first and the second locations of the foreground subject, determining a minimum path of values extending from a top to a bottom of the merged image from the pixel difference image;
- forming the merged image by stitching the first and the second images along the minimum path by using pixels from the first image on a first side of the minimum path and using pixels from the second image on a second side of the minimum path;
- and
- displaying the merged image.
Dependencies are inferred from the claim text.