| CPC G06T 5/77 (2024.01) [G06T 7/194 (2017.01)] | 20 Claims |

|
1. A computer-implemented method for performing inpainting, the method comprising:
accessing a first image;
receiving a selected area of the first image;
identifying a foreground area of the first image;
generating a merged mask that covers the entirety of a union of the selected area and the foreground area;
performing an inpainting process on an area of the first image corresponding to the merged mask to generate a second image, being an inpainted image;
generating a reduced mask based on the selected area of the first image reduced by the foreground area of the first image; and
combining the first image with an area of the second image corresponding to the reduced mask to produce an output image, wherein areas of the first image corresponding to the reduced mask are replaced with the inpainted image.
|