Patent ID: 11935155
Assignee: CANON KABUSHIKI KAISHA
Field: Computer technology (Electrical engineering)
Classification: CPC G | IPC G

Claim 5:
6. A non-transitory computer-readable storage medium storing computer executable instructions for causing a computer to execute a method comprising:
extracting a foreground object region from a captured image captured by an image capturing unit;
generating a mask image corresponding to the foreground object region in the captured image, and having colors different depending on a respective luminance value of each of divided regions of the foreground object region;
combining the mask image generated in the generating and a predetermined image to generate an output image; and
setting a first luminance range and a second luminance range different from the first luminance range, wherein the first luminance range and the second luminance range do not overlap;
wherein, for each divided region of the divided regions of the foreground object region, a first color is determined as a color used for generating a region of the mask image corresponding to said divided region in a case where the respective luminance value of said divided region falls within the first luminance range, a second color different from the first color is determined as a color used for generating the region of the mask image corresponding to said divided region in a case where the respective luminance value of said divided region falls within the second luminance range, and the region of the mask image corresponding to said divided region is generated using the color determined for said divided region, and
wherein a region having a specific range of colors is extracted from the captured image, wherein the region having the specific range of colors includes one or more of the divided regions, and the first luminance range and the second luminance range are set depending on the minimum luminance value and the maximum luminance value of the respective luminance values of the one or more of the divided regions included in the region having the specific color range.