It is currently Sat Jun 27, 2026 4:14 pm


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: Possible to replace foreground with background?
PostPosted: Mon Dec 04, 2017 5:45 am  (#1) 
Offline
New Member

Joined: Dec 04, 2017
Posts: 1
GIMP Version: 2.8.16
Operating System: Windows
OS Version: 7
GIMP Experience: Basic Level



I'm new; this is my first message.

I'm new to GIMP, but I'm learning everyday.

My question is:

Is it possible to cut out the foreground of an image and replace the cut out area with a continuation of the background in such a way that the new image looks flawless and continuous?

If the background is just one simple color, this would be easy.

Similarly, if the background is a simple repeating pattern, then this would also be easy.

But what if the background is not simple?

Here's a concrete example of what I mean:

Let's say I take a photo of my friend standing in front of a wooded area with trees and the sky in the background and the green grass at his feet and everything else you would expect to see at the woods.

I can easily cut out my friend's image from the photo.

But is it possible to fill in the empty space where my friend's image was with a continuation of the background in such a way that the resulting image looks as if my friend were never there to begin with?


Share on Facebook Share on Twitter Share on Orkut Share on Digg Share on MySpace Share on Delicious Share on Technorati
Top
 Post subject: Re: Possible to replace foreground with background?
PostPosted: Mon Dec 04, 2017 6:21 am  (#2) 
Offline
GimpChat Member
User avatar

Joined: Jun 02, 2013
Posts: 2090
Yes. There is a feature on G'mic called inpainting. Befores and afters.

Image

Image

Image

Image

_________________
Image


Top
 Post subject: Re: Possible to replace foreground with background?
PostPosted: Mon Dec 04, 2017 11:24 am  (#3) 
Offline
GimpChat Member
User avatar

Joined: Apr 07, 2010
Posts: 14182
Very nice photos Warrior.

_________________
Image


Top
 Post subject: Re: Possible to replace foreground with background?
PostPosted: Mon Dec 04, 2017 10:31 pm  (#4) 
Offline
Global Moderator
User avatar

Joined: Apr 01, 2012
Posts: 8396
Location: On the other side of your screen
Hello golden. Welcome to the forum

There is another way just using just gimp (Although probably not as good as the GMIC filter)

By using Filters > enhance > heal selection
Image Before
Image After

_________________
Image
Free Fun Photo Editing & resources
Poems from the Lord
Gimp Newby
Gimp version 3.2.0 and GMIC-Qt 3.7.5 OS :- Windows 10 Home 64


Top
 Post subject: Re: Possible to replace foreground with background?
PostPosted: Tue Dec 05, 2017 3:01 am  (#5) 
Offline
Script Coder
User avatar

Joined: Oct 25, 2010
Posts: 4812
To be accurate, both GMIC and resynthesize (which is begin "Heal selection") are add-ons...

_________________
Image


Top
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC - 5 hours [ DST ]



* Login  



Powered by phpBB3 © phpBB Group