主权项 |
1. An image processing device, comprising:
a storage configured to store a background image, a first image and a second image that are foreground images with respect to the background image and have predetermined positions relative to the background image, and a first mask image formed from pixels having a first pixel value indicating opacity and pixels having a zero pixel value indicating transparence; an acquirer configured to generate the background image, the first image, the second image, and the first mask image from the storage; and an image generator configured to generate a first composite image in which the second image acquired by the acquirer is composited, onto the background image acquired by the acquirer, in the pixels that are in the same positions as the pixels in the first mask image having the first pixel value, and the first image acquired by the acquirer is composited, onto the background image acquired by the acquirer, where the second image is not composited, in the pixels that are in the same positions as the pixels in the first mask image having the first pixel value. |