It is currently Wed Nov 25, 2026 10:54 pm


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 10 posts ] 
Author Message
 Post subject: How do I select around lightening rods
PostPosted: Sat Nov 06, 2010 11:13 pm  (#1) 
Offline
GimpChat Member

Joined: Nov 04, 2010
Posts: 67
This is a picture of a barn with lightening rods. I want to add a better sky behind the barn. I accomplished this except for the issue of the lightening rods. I free-selected the entire sky and removed it, but the rods seem to thin to select. How would I remove the sky around them? If I zoom in enough to do it, the rods are to fuzzy.


Attachments:
lightning rods.png
lightning rods.png [ 3.52 MiB | Viewed 2937 times ]
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 do I select around lightening rods
PostPosted: Sat Nov 06, 2010 11:30 pm  (#2) 
Offline
GimpChat Member

Joined: Apr 12, 2010
Posts: 5870
enter in quickmask mode (click the little square at the left lower corner of image windows) you will see a red overlay covering the unselected part of the image ) and with the pencil or a tin brush reveal the rods

you may lower/raise the opacity of the mask or change its color by RIGHT clicking on the same little square ...
color and opacity of the mask are only for you to see better the image below, they will not influence the final result

use black and white to remove/add to the mask (and grey for intermediate result )

_________________
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 do I select around lightening rods
PostPosted: Sat Nov 06, 2010 11:36 pm  (#3) 
Offline
GimpChat Member

Joined: Apr 12, 2010
Posts: 5870
anyway is not a easy job

but a trick may help:
duplicate the layer, use level, click with the white eyedropper on the grey sky and with the black on some point of the rod

that will boost the contrast, hopefully sufficiently to use the magic wand to select around the rod, ..or at least making easier doing a manual work

when done the selection you may delete the new layer, the selection will remain ready to be used on the original

_________________
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 do I select around lightening rods
PostPosted: Sun Nov 07, 2010 6:51 am  (#4) 
Offline
GimpChat Member
User avatar

Joined: Oct 06, 2010
Posts: 4050
In addition to what PC has suggested (Quick mask is the fastest way when using grainy images such as yours), just set your brush size to match the area you want highlighted, and hold the shift key down to use point to point accuracy with the Paintbrush or Airbrush tool. In some cases your brush needs to be hard edged, and other times they should be fuzzy edged, depending on the background contrast.

One other plug-in works real well with adding contrast is Adaptive Contrast Enhancer, which can be found here, on the Registry:

http://registry.gimp.org/node/11729

I just performed this on your image and it worked out real well.

_________________
"In order to attain the impossible, one must attempt the absurd."
~ Miguel de Cervantes


Top
 Post subject: Re: How do I select around lightening rods
PostPosted: Sun Nov 07, 2010 9:26 am  (#5) 
Offline
Global Moderator
User avatar

Joined: May 16, 2010
Posts: 16314
Yeah thats the trick, get the contrast sharper, most of the time with hair or thin objects background removal can be accomplished by a mask -
1) add an alpha channel to the image
2) duplicating the image
3) on the dup - colors/curves, and set the sky too almost white (usually by sliding the top part of the line to the left and the bottom too the right.
4) on the dup image - colors/invert and paint white what you want to KEEP in the image and paint black what you want transparent.
5) Now right click and add a layer mask to the original layer.
6) right click and Edit/Cut the top layer and paste it in the MASK on the original layer - make sure you have the mask part of the layer selected.

That should give you a pretty decent transparent background. This works pretty nicely for sky and lighter backgrounds against darker images like hair, trees, and towers you want to keep in the image.

Image

_________________
Image


Top
 Post subject: Re: How do I select around lightening rods
PostPosted: Sun Nov 07, 2010 9:35 am  (#6) 
Offline
GimpChat Member

Joined: Apr 12, 2010
Posts: 5870
I found i even better way to avoid most of the manual work


duplicate the layer, use level, click with the white eyedropper on the grey sky and with the black on some point of the rod

that will boost the contrast... result should look close to the threshold filter (pure black and solid white ) but more clean

NOW THE TRICK

Copy the duplicate layer but DON'T Paste

instead switch off duplicate visibility

activate the original layer, create a layer mask

(to create the layermask start with a right click on the layer to call the context menu and select Add layer mask in the menu. If the menu item is grayed first select Add Alpha channel in the same menu. A dialog appears where you can initialize the content of the mask:

Attachment:
File comment: file:///usr/share/gimp/2.0/help/images/dialogs/layer-mask-add.png
layer-mask-add.png
layer-mask-add.png [ 7.83 KiB | Viewed 2895 times ]


chose ..white or black

Now paste over the mask the Layer you copied, and do Colors/Invert

DONE !! on your example no further work should be needed
but in case some detail get lost (as very fine cables ) you may simply correct the layermask with black or white strokes

And is a totally not distributive process no pixels are deleted(is the mask that make them invisible )

_________________
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 do I select around lightening rods
PostPosted: Sun Nov 07, 2010 9:40 am  (#7) 
Offline
Global Moderator
User avatar

Joined: May 16, 2010
Posts: 16314
i think we posted at the same time PC..lol

_________________
Image


Top
 Post subject: Re: How do I select around lightening rods
PostPosted: Sun Nov 07, 2010 9:41 am  (#8) 
Offline
GimpChat Member

Joined: Apr 12, 2010
Posts: 5870
Yes Rod
we get simultaneously the same idea... :hi5

well mine was focused on BW images but is just needed to desutarate the dup to get same result for rgb

_________________
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 do I select around lightening rods
PostPosted: Sun Nov 07, 2010 9:43 am  (#9) 
Offline
Global Moderator
User avatar

Joined: May 16, 2010
Posts: 16314
I got my idea from GimpTrix tutorial by Jolie. =)

_________________
Image


Top
 Post subject: Re: How do I select around lightening rods
PostPosted: Sun Nov 07, 2010 1:29 pm  (#10) 
Offline
GimpChat Member
User avatar

Joined: Jul 04, 2010
Posts: 2253
Location: Retired Moderator Slowly Returning to the Living.
I like using paths a lot. I zoomed in, drew in some paths, selected the paths and feathered them a little. It only took a minute and a half to do this one.


Attachments:
LightningRodsMod.png
LightningRodsMod.png [ 1.55 MiB | Viewed 2882 times ]

_________________
Artists aren't crazy! We're eccentric! ~G.M. Ross

Image

My Sigs = My Photos
Check out my work at http://www.flickr.com/photos/photomastergreg.
Top
Post new topic Reply to topic  [ 10 posts ] 

All times are UTC - 5 hours [ DST ]



* Login  



Powered by phpBB3 © phpBB Group