Inpainting is a “solved problem” nowadays with diffusion models. Throw this problem into Photoshop and you get amazing results out (some of the times…)
I’m surprised that there’s no normalized convolution solution. It will not be great, but by far will be the shortest answer (other than the ones where they call an existing inpainting function in OpenCV or Mathematica).