Hi,
what is the current state of the art content aware fill with free software?
I saw resynthesizer for gimp but could not get it running because of some python2 dependencies.
(using debian bullseye)
What are the best tools out there? How to get them?
There are different inpainting filters in G’MIC. (G’MIC is a GIMP plugin.) Perhaps @David_Tschumperle can tell which one is the best.
I show some methods, with code, at Filling holes and Filling holes in priority order. But I wouldn’t call them “current state of the art”.
Yes, there are several Gmic filters that can do that quite well, you find them in Gmic-qt under “repair”, they are called “inpaint”. last time I used them was perhaps 2 years ago. I think they were not modified during the last years. However, they are a bit slow - I think you have to recompile them for multi-core support.
G’MIC works well if the background isn’t too structured in my experience.
- Paint over the object you want to remove with a hard brush & pure colour (e.g. red).
- Select the area containing the painted parts (goes faster)
- in G’MIC select Inpaint [multi-scale]
- Select the mask colour and dilate the mask by 3-5 pixels. Apply.
On Windows, the GIMP Partha build has Resynthesizer already loaded and ready to go. It works.
While not strictly the same as Content Aware Fill in Photoshop context, I have found the darktable retouch module quite effective for removing unwanted objects from e.g. the edges of the photo or the background. Especially the wavelet decomposition mode is quite effective if the object to be removed and the desired replacement have distinct scales. For example, removing tree branches and replacing them with sky.