It is currently Sat Jun 06, 2026 5:35 am


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 15 posts ] 
Author Message
 Post subject: "Colors and grain" script
PostPosted: Mon Mar 28, 2011 2:31 pm  (#1) 
Offline
GimpChat Member

Joined: Apr 12, 2010
Posts: 5870
i just stumbled upon this nice script

how to and script here (don't get scared by the Russian banner ,JUST SCROLL for the english translation included)
http://leoblog.ru/?Proekty:Pesni_pro_gr ... t-zerno%22

examples of a more adavanced use of the script
http://leoblog.ru/?Proekty:Pesni_pro_gr ... t-zerno%22

_________________
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


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: "Colors and grain" script
PostPosted: Mon Mar 28, 2011 4:50 pm  (#2) 
Offline
GimpChat Member

Joined: Mar 24, 2011
Posts: 43
Cool script!

_________________
I always wanted to be a procrastinist... never got around to it.
Image


Top
 Post subject: Re: "Colors and grain" script
PostPosted: Fri Oct 21, 2011 1:10 pm  (#3) 
Offline
New Member

Joined: Oct 21, 2011
Posts: 2
here also another sample, for an old photo restoring

Image


Top
 Post subject: Re: "Colors and grain" script
PostPosted: Fri Oct 21, 2011 1:38 pm  (#4) 
Offline
GimpChat Member
User avatar

Joined: Jun 04, 2011
Posts: 254
i had this script one time before but could never figure out how to use it.

_________________
Image


Top
 Post subject: Re: "Colors and grain" script
PostPosted: Fri Oct 21, 2011 6:18 pm  (#5) 
Offline
Script Coder
User avatar

Joined: Feb 18, 2011
Posts: 4826
Location: Bendigo Vic. Australia
I have this script and its very good at removing unwanted area's from a background yet surprisingly easy to use.

_________________
Image
No matter how much you push the envelope, it'll still be stationery.


Top
 Post subject: Re: "Colors and grain" script
PostPosted: Fri Oct 21, 2011 7:17 pm  (#6) 
Offline
Retired Staff
User avatar

Joined: May 22, 2008
Posts: 6946
Location: Somewhere in GIMP
PhotoComix wrote:
i just stumbled upon this nice script

how to and script here (don't get scared by the Russian banner ,JUST SCROLL for the english translation included)
http://leoblog.ru/?Proekty:Pesni_pro_gr ... t-zerno%22

examples of a more adavanced use of the script
http://leoblog.ru/?Proekty:Pesni_pro_gr ... t-zerno%22
Has anyone tried this? I'm having very bad luck with it. By finger tool, does he mean the smudge tool?

Here is just the text of the tutorial:

Quote:
This is a very simple script for method of image processing othen used by myself - splitting picture into a two assembled layers: colors and grain. This gives us a very lot of capabilities of changing picture without making a hard artefacts inside it. For example, look to the one of pictures maked by myself in Prague this year:

Firstly, you are need to install my script: download it by this link or here - for a slow machines, and copy file to the "C:\Program Files\GIMP-2.0\share\gimp\2.0\scripts\" (or script directory of the GIMP on your system); go to filters - script-fu - reload srcipts, and obtain new element in the scripts menu.

"3" is the radius of color-mixing. Choose the "colors" layer and using the finger-tool remove the man in the middle of picture background colors:

by the same way, remove the shadows of the man on the water, and head of the man on the yellow wall. Results will look like:

now switch to the "grain" layer, and remove the ghost of the man by clone tool, using the nearest parts of picture as a source. Results will look like:

and now there is nobody at the center.


My results
Image

Original image
Image

_________________
Image
World War IV will be fought with sticks and stones. - Albert Einstein


Top
 Post subject: Re: "Colors and grain" script
PostPosted: Fri Oct 21, 2011 7:54 pm  (#7) 
Offline
GimpChat Member
User avatar

Joined: Oct 06, 2010
Posts: 4050
O: yes, the smudge tool. It works great for me.

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


Top
 Post subject: Re: "Colors and grain" script
PostPosted: Fri Oct 21, 2011 7:59 pm  (#8) 
Offline
Retired Staff
User avatar

Joined: May 22, 2008
Posts: 6946
Location: Somewhere in GIMP
So, mahvin, you've done the script with good results? The smudge tool seems to be doing a lot of smudging without removing for me.

_________________
Image
World War IV will be fought with sticks and stones. - Albert Einstein


Top
 Post subject: Re: "Colors and grain" script
PostPosted: Fri Oct 21, 2011 8:12 pm  (#9) 
Offline
GimpChat Member
User avatar

Joined: Oct 06, 2010
Posts: 4050
Yes. With great results. I followed his tutorial. Didn't do anything different from it.

Read my comments on the Registry. http://registry.gimp.org/node/25148

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


Top
 Post subject: Re: "Colors and grain" script
PostPosted: Fri Oct 21, 2011 8:30 pm  (#10) 
Offline
Retired Staff
User avatar

Joined: May 22, 2008
Posts: 6946
Location: Somewhere in GIMP
I got a different, smaller picture, ran the script and used the smudge tool on the color layer as the instructions say. It doesn't do much but smudge a bit. It doesn't erase the object.

_________________
Image
World War IV will be fought with sticks and stones. - Albert Einstein


Top
 Post subject: Re: "Colors and grain" script
PostPosted: Fri Oct 21, 2011 8:45 pm  (#11) 
Offline
GimpChat Member
User avatar

Joined: Oct 06, 2010
Posts: 4050
Your train picture isn't something that would be a candidate for this technique, but a brick building or something with a consistent background. You have to smudge your object you wish removed, from outside the object edge inward, then when you are happy with the colors layer, switch to grain merge layer and use the clone tool to clean up.

Done in a hurry, so I wasn't trying very hard to do this:

Run Leon's script:

Example image...
Image

Switch to colors layer, and using smudge tool, smudge the object to be removed using outside to inside strokes. You only want to smudge the object, NOT around the outside of the object.

Once it leaves a grain contrast look, then switch to the grain layer and use the clone tool to begin cleaning up the contrast areas.

Switch back to the colors layer and smudge the remaining artifacts until you are happy.

My quick end result:
Image

I actually over-smudged it, but I wasn't trying to be a perfectionist. The potential for this script is when your background is something with a consistent pattern.

I had to throw this in there. I used Resynthesizer and saved 5 minutes:
Image

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


Top
 Post subject: Re: "Colors and grain" script
PostPosted: Sat Oct 22, 2011 1:53 am  (#12) 
Offline
Global Moderator
User avatar

Joined: May 16, 2010
Posts: 16011
You are actually supposed to smudge the color layer and then use the clone tool to fix it up. :)
At least those are his onsite directions.

_________________
Image


Top
 Post subject: Re: "Colors and grain" script
PostPosted: Sat Oct 22, 2011 2:20 am  (#13) 
Offline
GimpChat Member
User avatar

Joined: Oct 06, 2010
Posts: 4050
The smudge tool is used on the colors layer and the clone tool is used on the grain layer.

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


Top
 Post subject: Re: "Colors and grain" script
PostPosted: Sat Oct 22, 2011 6:46 am  (#14) 
Offline
Global Moderator
User avatar

Joined: May 16, 2010
Posts: 16011
I think that was the confusion before.Folks were using the clone tool on the colors layer. :)
Thanks Mahvin.

_________________
Image


Top
 Post subject: Re: "Colors and grain" script
PostPosted: Sat Oct 22, 2011 7:46 am  (#15) 
Offline
Retired Staff
User avatar

Joined: May 22, 2008
Posts: 6946
Location: Somewhere in GIMP
OK, I see your point about my picture not being a good candidate for this method. Was wondering if an activated path around the object would help keep the smudging within the object. Yours looks really great mahvin. I really appreciate your input about it and your examples. Thank you!

I was doing it properly. Smudging on the color layer and cloning on the grain layer.

I'll see if I can find a better picture. :mrgreen:

_________________
Image
World War IV will be fought with sticks and stones. - Albert Einstein


Top
Post new topic Reply to topic  [ 15 posts ] 

All times are UTC - 5 hours [ DST ]



* Login  



Powered by phpBB3 © phpBB Group