Sign in to follow this  
dipstick

Fix Photo Bomb with G'mic - Inpaint filter

Recommended Posts

This tutorial is available as a PDF. Click here to view or download it

 

You can use G'mic's Inpaint filter to help fix a photo bomb image. Example:

 

KeJ7gZg.gif

 

You'll need null54's G'mic plugin

 

It's a 2-step process:

 

1) Paint on a mask over offending object. Use Red at 255. Use brush hardness at 100. Disable Anti-Aliasing.

2) Run G'mic and go to Repair/Inpaint. I used [Multi-Scale]

3) Inpaint might not get everything, you can finish  off with Clone Stamp.

 

qHYXytj.png

 

txsPdPi.png

 

Enjoy...

  • Like 2

Share this post


Link to post
Share on other sites
6 hours ago, Robert Smith said:

What about the shadows behind them. You didn't try to remove it or forgot?

 

Shadows being far less intrusive than a photo bomber ?

 

Content Aware Fill will do the job 

 

content-aware.png

  • Like 1

Share this post


Link to post
Share on other sites
15 minutes ago, Robert Smith said:

Marked areas don't look like natural. 

 

I can't believe you're complaining about this.

 

This was an automatic job done by a piece of software (amazing software)!

 

So, you have two small areas to clean up manually. Do you not understand how incredibly complicated an algorithm like this is?  That fact that it looks even remotely normal is an amazing feat!

 

It's comments like this that make me want to give up coding all together.

 

...NEVER SATISFIED...

 

  • Like 4

Share this post


Link to post
Share on other sites
32 minutes ago, Robert Smith said:

You did well, But Marked areas don't look like natural. 

 

The sea - nothing to do with me, t'was already like that and I was too lazy to play with it.

 

The sand ... 1. again too lazy to select properly - preparation really is key

                      2.  it's really not the best image to work with, being so pixelated ...  (just image they;d been having a kiss and cuddle laying down on moist sand ... looks natural then)

Edited by welshblue
  • Like 1

Share this post


Link to post
Share on other sites
16 hours ago, Robert Smith said:

You did well, But Marked areas don't look like natural.

 

All you needed to do was to work with clone brush right after and some bit of painting. The thing is that there's no good solution to this sort of task. On shadow, would play with lighting to solve that.

 

The OP only is pointing to a step to the right direction.

Edited by Reptillian
  • Like 1

Share this post


Link to post
Share on other sites
22 hours ago, BoltBait said:

 

I can't believe you're complaining about this.

 

This was an automatic job done by a piece of software (amazing software)!

 

So, you have two small areas to clean up manually. Do you not understand how incredibly complicated an algorithm like this is?  That fact that it looks even remotely normal is an amazing feat!

 

It's comments like this that make me want to give up coding all together.

 

...NEVER SATISFIED...

 

I am not complaining 😊 just saying that it could be better  

Share this post


Link to post
Share on other sites
14 minutes ago, Robert Smith said:

it could be better  

 

If you have an idea on how to improve the automatic algorithm, I'm excited to see your results.  Please show us your code!

  • Like 1

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this