It is currently Fri Jul 26, 2024 9:25 am


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 25 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: How to extract an object from a photo properly
PostPosted: Thu Jan 16, 2014 4:40 pm  (#1) 
Offline
GimpChat Member

Joined: Feb 05, 2013
Posts: 33
GIMP Version: 2.8.4
Operating System: Mac OS
OS Version: 10.9.1
GIMP Experience: Beginner Level



Hi,

I am trying to extract an image from a photo and I have done that using the Free Select and also the Scissor Selection methods. The picture is a pot plant. When I used feathering the actual plant didn't come out sharp but the pot planter was not bad. I then did it again but this time didn't feather it. The result was a nice sharp edge on the plant (which I wanted) but the pot planter has jagged edges. How can I correct this or what can I do to achieve a nice image please?


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: How to extract an object from a photo properly
PostPosted: Thu Jan 16, 2014 7:09 pm  (#2) 
Offline
GimpChat Member
User avatar

Joined: Nov 15, 2012
Posts: 949
Location: Mesa, AZ
I find that the best method is still by hand. Free select tool and feather the selection, but only by 1 pixel. When rendering a subject to paste it into another image, those sharp edges are really undesirable as they will make it stick out like a sore thumb. If you got really high contrast between your subject and the background, and in addition your background is a uniformish kind of color, you can try to desaturate and mess with the levels until you have a mask of sorts you can use as a layer mask. This often works well for hair or fur, trees and such. Here's a tutorial from Jolie to give you an idea of what I'm talking about.

www.youtube.com Video from : www.youtube.com

_________________
Image

I now have a Tumblr, check it out!


Top
 Post subject: Re: How to extract an object from a photo properly
PostPosted: Thu Jan 16, 2014 7:33 pm  (#3) 
Offline
Administrator
User avatar

Joined: Aug 10, 2012
Posts: 13080
Location: Native to NYC living in Arizona, Gimp 2.8 & 2.10, Win 11 PC.
ek22 wrote:
I find that the best method is still by hand. Free select tool and feather the selection, but only by 1 pixel. When rendering a subject to paste it into another image, those sharp edges are really undesirable as they will make it stick out like a sore thumb. If you got really high contrast between your subject and the background, and in addition your background is a uniformish kind of color, you can try to desaturate and mess with the levels until you have a mask of sorts you can use as a layer mask. This often works well for hair or fur, trees and such.


That's a great suggestion Ek22.

Also, if you can post the image, others my be able to suggest other alternative methods.

_________________
Image
"A wise man learns more from a foolish question than a fool can learn from a wise answer"
Image


Top
 Post subject: Re: How to extract an object from a photo properly
PostPosted: Thu Jan 16, 2014 8:30 pm  (#4) 
Offline
Global Moderator
User avatar

Joined: Nov 16, 2011
Posts: 5128
Location: Metro Vancouver, BC
irobyn wrote:
...When I used feathering the actual plant didn't come out sharp but the pot planter was not bad...
You could also try by isolating the pot and the plant parts of the image on separate layers and select them individually.

_________________
Image
Gimp 2.8.18, Linux, median user
Gimp Chat Tutorials Index
Spirit Bear (Kermode)


Top
 Post subject: Re: How to extract an object from a photo properly
PostPosted: Thu Jan 16, 2014 11:00 pm  (#5) 
Offline
GimpChat Member

Joined: Feb 05, 2013
Posts: 33
Thanks for all your help EK22 - I am about to try it now.

Robyn


Top
 Post subject: Re: How to extract an object from a photo properly
PostPosted: Thu Jan 16, 2014 11:11 pm  (#6) 
Offline
GimpChat Member

Joined: Feb 05, 2013
Posts: 33
Thanks also to Wallace & Odinbc for your suggestions as well - I actually thought I put the link from dropbox in so I don't understand. I am new to all this.


Top
 Post subject: Re: How to extract an object from a photo properly
PostPosted: Fri Jan 17, 2014 12:44 am  (#7) 
Offline
GimpChat Member

Joined: Feb 05, 2013
Posts: 33
Quote:
I find that the best method is still by hand. Free select tool and feather the selection, but only by 1 pixel. When rendering a subject to paste it into another image, those sharp edges are really undesirable as they will make it stick out like a sore thumb. If you got really high contrast between your subject and the background, and in addition your background is a uniformish kind of color, you can try to desaturate and mess with the levels until you have a mask of sorts you can use as a layer mask. This often works well for hair or fur, trees and such.


That's a great suggestion Ek22.

Quote:
Also, if you can post the image, others my be able to suggest other alternative methods.


Thanks Wallace...will try this too.


Top
 Post subject: Re: How to extract an object from a photo properly
PostPosted: Fri Jan 17, 2014 1:06 am  (#8) 
Offline
GimpChat Member
User avatar

Joined: Nov 15, 2012
Posts: 949
Location: Mesa, AZ
irobyn wrote:
Thanks also to Wallace & Odinbc for your suggestions as well - I actually thought I put the link from dropbox in so I don't understand. I am new to all this.


You should be able to upload an image file now that you're over 5 posts. Even xcf files can be posted as attachments. It probably didn't let you link because you're so new to the forum.

_________________
Image

I now have a Tumblr, check it out!


Top
 Post subject: Re: How to extract an object from a photo properly
PostPosted: Fri Jan 17, 2014 5:39 am  (#9) 
Offline
GimpChat Member

Joined: Apr 12, 2010
Posts: 5870
1 Look always the selection in quickmask mode (the tiny square at the lower left of image window open quickmask)
Quickmask use a red overlay at 50% opacity that most of time is fine BUT are cases where is better change it ,i.e. because the image contains similar red )
Only quickmask show the real selection,the marching ants show only a approximatio

Also in quickmask you may select details of the selection and apply filter on it...at example to feather only the part of selection showing jagged edges

About feathering...apply gaussian blur on the quickmask (or to a selection saved in a channel) is identical then feather:
feather of 5 is identical to blur the mask of 5

_________________
My 3D Gallery on Deviantart http://photocomix2.deviantart.com/
Main gallery http://www.flickriver.com/photos/photocomix-mandala/
Mandala and simmetry http://www.flickriver.com/photos/photocomix_mandala/

Image

Mrs Wilbress


Top
 Post subject: Re: How to extract an object from a photo properly
PostPosted: Fri Jan 17, 2014 8:28 am  (#10) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14730
Location: USA
I almost always use the PATHS Tool and create a Selection from that PATH.
Then feather the selection to your taste.
Most important, take your time with the PATHS Tool.

_________________
Image
Edmund Burke nailed it when he said, "The only thing necessary for the triumph of evil is for good men to do nothing."


Top
 Post subject: Re: How to extract an object from a photo properly
PostPosted: Fri Jan 17, 2014 4:06 pm  (#11) 
Offline
GimpChat Member

Joined: Feb 05, 2013
Posts: 33
Image


Top
 Post subject: Re: How to extract an object from a photo properly
PostPosted: Fri Jan 17, 2014 4:15 pm  (#12) 
Offline
GimpChat Member

Joined: Feb 05, 2013
Posts: 33
Image

This is the original photo.


Top
 Post subject: Re: How to extract an object from a photo properly
PostPosted: Fri Jan 17, 2014 4:35 pm  (#13) 
Offline
GimpChat Member

Joined: Feb 22, 2012
Posts: 295
Location: Germany
extracted with the matting tool based on RGGJANs tool in gimp-2.8.11 (onkel hatti version)
and a refining of about 5-7 minutes.


Attachments:
stern.png
stern.png [ 853.23 KiB | Viewed 1288 times ]
Top
 Post subject: Re: How to extract an object from a photo properly
PostPosted: Fri Jan 17, 2014 6:07 pm  (#14) 
Offline
GimpChat Member

Joined: Feb 05, 2013
Posts: 33
Image

I used the free select tool with a radius of 1 and a feather of 1 to cut out the image. I then used the eraser to smooth the edge of the planter stand on the left hand side. It's not perfect but much better than the original one I did. Now how do I get rid of those white sunlight shadows on the pot please, which were in the original photo?


Top
 Post subject: Re: How to extract an object from a photo properly
PostPosted: Fri Jan 17, 2014 9:33 pm  (#15) 
Offline
GimpChat Member
User avatar

Joined: Apr 08, 2010
Posts: 5420
Location: Northwest Ohio
I would use the clone tool to get rid of the sunlight on the pot.


Top
 Post subject: Re: How to extract an object from a photo properly
PostPosted: Fri Jan 17, 2014 11:50 pm  (#16) 
Offline
GimpChat Member

Joined: Feb 05, 2013
Posts: 33
2-ton wrote:
I would use the clone tool to get rid of the sunlight on the pot.


I tried to get rid of the white marks with the clone tool using CTRL Click - found out it is actually COMMAND Click on my Mac. Didn't look very nice so wonder what else I can do please?


Top
 Post subject: Re: How to extract an object from a photo properly
PostPosted: Sat Jan 18, 2014 12:11 am  (#17) 
Offline
Administrator
User avatar

Joined: Aug 10, 2012
Posts: 13080
Location: Native to NYC living in Arizona, Gimp 2.8 & 2.10, Win 11 PC.
irobyn wrote:
2-ton wrote:
I would use the clone tool to get rid of the sunlight on the pot.


I tried to get rid of the white marks with the clone tool using CTRL Click - found out it is actually COMMAND Click on my Mac. Didn't look very nice so wonder what else I can do please?

Here's what I did using the "clone tool"... It's not perfect though.
Image

_________________
Image
"A wise man learns more from a foolish question than a fool can learn from a wise answer"
Image


Top
 Post subject: Re: How to extract an object from a photo properly
PostPosted: Sat Jan 18, 2014 12:44 am  (#18) 
Offline
GimpChat Member

Joined: Feb 05, 2013
Posts: 33
Wallace wrote:
I would use the clone tool to get rid of the sunlight on the pot.


I tried to get rid of the white marks with the clone tool using CTRL Click - found out it is actually COMMAND Click on my Mac. Didn't look very nice so wonder what else I can do please?[/quote]
Here's what I did using the "clone tool"... It's not perfect though.
Image[/quote]

Hi Wallace,

It looks better than mine and it's quite nice. I am at the moment using the Heal tool to see if it makes any difference. How long did it take you to achieve that?


Top
 Post subject: Re: How to extract an object from a photo properly
PostPosted: Sat Jan 18, 2014 12:56 am  (#19) 
Offline
Administrator
User avatar

Joined: Aug 10, 2012
Posts: 13080
Location: Native to NYC living in Arizona, Gimp 2.8 & 2.10, Win 11 PC.
irobyn wrote:
Hi Wallace,

It looks better than mine and it's quite nice. I am at the moment using the Heal tool to see if it makes any difference. How long did it take you to achieve that?

It didn't take me very long, maybe 5-10 minutes or so. I also used a layer mask to remove some of the unwanted edges that were on the outside of the image. Did a little blending of red too on the plant where the white spots of light were.

_________________
Image
"A wise man learns more from a foolish question than a fool can learn from a wise answer"
Image


Top
 Post subject: Re: How to extract an object from a photo properly
PostPosted: Sat Jan 18, 2014 1:19 am  (#20) 
Offline
GimpChat Member

Joined: Feb 05, 2013
Posts: 33
Wallace wrote:
irobyn wrote:
Hi Wallace,

It looks better than mine and it's quite nice. I am at the moment using the Heal tool to see if it makes any difference. How long did it take you to achieve that?

It didn't take me very long, maybe 5-10 minutes or so. I also used a layer mask to remove some of the unwanted edges that were on the outside of the image. Did a little blending of red too on the plant where the white spots of light were.


Is it possible to give me the steps and the settings of what you used to get the image to this standard please? As I am new to all this and as I have been working on this most of the day, I am getting to the stage where I could just leave it. I am like a bull in a china shop with this at the moment...I could have my settings all wrong?? Haha!


Top
Post new topic Reply to topic  [ 25 posts ]  Go to page 1, 2  Next

All times are UTC - 5 hours [ DST ]


   Similar Topics   Replies 
No new posts Attachment(s) Extract Object plugin question

7

No new posts ERROR MAP OBJECT CREATE A PHOTO CUBE

2

No new posts Scripts that don't work properly

5

No new posts The G'MIC plug-in is no longer working properly.

4

No new posts APPLICATION WAS UNABLE TO START PROPERLY

3



* Login  



Powered by phpBB3 © phpBB Group