It is currently Mon Jul 22, 2024 6:12 pm


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 38 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: Stamp Filter for G'MIC
PostPosted: Sat Mar 26, 2011 6:17 pm  (#1) 
Offline
Global Moderator
User avatar

Joined: Oct 06, 2010
Posts: 4050
I was reading on G'MIC Flickr

http://www.flickr.com/groups/gmic/discu ... 6234423511

Anatron added some command line code, which I then converted to use in GIMP as a G'MIC filter. It needs some sliders for sharpening, and possibly smoothness, something similar to Lyle's preset (maybe amplitude?). But the filter, on its own works great.

################  STAMP START  ########################
#@gimp Stamp : my_third_filter, my_third_filter
#@gimp : note = note("Creates a stamp effect with strength 0-30 and blur 1-5")
#@gimp : Amplitude = int(2,0,50)
#@gimp : Smoothness = float(.1,0,10)
#@gimp : Sharpening = float(.1,0,10))
#@gimp : Channel(s) = choice("All","RGBA","RGB","Luminance","Blue/red chrominances","Blue chrominance","Red chrominance","Lightness","ab-components","a-component","b-component","Hue","Saturation","Value","Key","Alpha","ch-components","c-component","h-component")
#@gimp : sep = separator(), note = note("<small>Author : <i>antaron, David Tschumperl&#233;</i>.      Latest update : <i>2011/03/26</i>.</small>")
my_third_filter :
-skip ${1=0},${2=3}
-norm
-t {50+$1}%
-to_rgb
-blur $2,0
-n 0,255
-apply_curve 1,0,0,101,33,170,229,255,255
-apply_channels "-repeat $1 -blur $3 -unsharp $3,$2 -c 0,255 -mv[-1] 0 -done",$4,0

################  STAMP END  ##########################

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


Last edited by mahvin on Sat Mar 26, 2011 10:11 pm, edited 1 time in total.

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: Stamp Filter for G'MIC
PostPosted: Sat Mar 26, 2011 6:28 pm  (#2) 
Offline
GimpChat Member
User avatar

Joined: Mar 02, 2011
Posts: 1850
Location: Michigan
Dang it, I forgot where is the ApData folder?

_________________
Image
I'm back I think


Top
 Post subject: Re: Stamp Filter for G'MIC
PostPosted: Sat Mar 26, 2011 6:36 pm  (#3) 
Offline
Global Moderator
User avatar

Joined: Oct 06, 2010
Posts: 4050
Use Run in your start button:

%appdata%

- or -

Enable viewing of hidden files and folders, and look in these folders:
C:\Users\<your user name>\AppData\Local\Adobe\...
C:\Users\<your user name>\AppData\Roaming\Adobe\...
C:\Users\<your user name>\AppData\LocalLow\Adobe\...

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


Top
 Post subject: Re: Stamp Filter for G'MIC
PostPosted: Sat Mar 26, 2011 6:37 pm  (#4) 
Offline
GimpChat Member
User avatar

Joined: Mar 02, 2011
Posts: 1850
Location: Michigan
Thanks Found it now :D

_________________
Image
I'm back I think


Top
 Post subject: Re: Stamp Filter for G'MIC
PostPosted: Sat Mar 26, 2011 7:21 pm  (#5) 
Offline
GimpChat Member

Joined: Apr 12, 2010
Posts: 5870
really busy to finish something else but you are right is easy add controls at least for unsharping and
for the curve

wich controls do you think would be most useful of what in gmic unsharp and curve ?

PS Looking better i i can't understand part of the code so i doubt i may change it

_________________
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: Stamp Filter for G'MIC
PostPosted: Sat Mar 26, 2011 7:25 pm  (#6) 
Offline
Global Moderator
User avatar

Joined: Oct 06, 2010
Posts: 4050
I think it needs the same as Lyle's preset settings: amplitude, sharpness, and radius.

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


Top
 Post subject: Re: Stamp Filter for G'MIC
PostPosted: Sat Mar 26, 2011 7:31 pm  (#7) 
Offline
GimpChat Member
User avatar

Joined: Mar 02, 2011
Posts: 1850
Location: Michigan
I am sure Ofnuts will do this when he finds time, or Saul will. someone will finish this

_________________
Image
I'm back I think


Top
 Post subject: Re: Stamp Filter for G'MIC
PostPosted: Sat Mar 26, 2011 8:21 pm  (#8) 
Offline
Global Moderator
User avatar

Joined: Oct 06, 2010
Posts: 4050
Actually, Willy, it will probably be me, or PC, or David, or possibly even antaron. Not sure Saulgoode or ofnuts because they deal with entirely different types of code.

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


Top
 Post subject: Re: Stamp Filter for G'MIC
PostPosted: Sat Mar 26, 2011 8:25 pm  (#9) 
Offline
GimpChat Member
User avatar

Joined: Mar 02, 2011
Posts: 1850
Location: Michigan
oh woopsy :p So you and Who is David/antaraon? So you guys do G'MIC? Then?

_________________
Image
I'm back I think


Top
 Post subject: Re: Stamp Filter for G'MIC
PostPosted: Sat Mar 26, 2011 8:57 pm  (#10) 
Offline
Global Moderator
User avatar

Joined: Oct 06, 2010
Posts: 4050
No. David created G'MIC and maintains it. Antaron is a G'MIC user like me and you.

I've added sliders and all sorts of gizmos to enhance the stamp but the original always looks better. :(

Getting some weird results, though. (Now I understand how PC feels).

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


Top
 Post subject: Re: Stamp Filter for G'MIC
PostPosted: Sat Mar 26, 2011 8:59 pm  (#11) 
Offline
GimpChat Member
User avatar

Joined: Mar 02, 2011
Posts: 1850
Location: Michigan
Wow, can't believe I didn't realize David was the one who Maintains G'MIC.
Well, look forward to when you finish this,
Willy

_________________
Image
I'm back I think


Top
 Post subject: Re: Stamp Filter for G'MIC
PostPosted: Sat Mar 26, 2011 9:54 pm  (#12) 
Offline
GimpChat Member

Joined: Apr 12, 2010
Posts: 5870
mahvin wrote:
I think it needs the same as Lyle's preset settings: amplitude, sharpness, and radius.


maybe may question was not clear:
this filter call what in the gmic filter list is called "unsharp" and "curve"

now looking to the controls for unsharp and curve which you think most relevant ?

anyway here what i don't understand

Quote:
################ STAMP START ########################
#@gimp Stamp : my_third_filter, my_third_filter
#@gimp : note = note("Creates a stamp effect with strength 0-30 and blur 1-5")
my_third_filter :
-skip ${1=0},${2=3}
-norm
-t {50+$1}%
-to_rgb
-blur $2,0
-n 0,255
-apply_curve 1,0,0,101,33,170,229,255,255
-gimp_unsharp 0,3.0,20,3,0,1,1,1,0,2

################ STAMP END ##########################


I tought "$" indicate variables but i can't follow how are used here , and till i can't guess how it work i can't try to change

as example i cannot add a control for the first paramether of blur "-blur $2,0" because is already controlled by $2 , and, hell, i can't guess what control $2

well i can't understand the use of any the "$" there

_________________
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: Stamp Filter for G'MIC
PostPosted: Sat Mar 26, 2011 10:12 pm  (#13) 
Offline
Global Moderator
User avatar

Joined: Oct 06, 2010
Posts: 4050
I've updated the filter (see the first post for updated code). This is as good as its going to get from me, until David works his magic on it. I'm sure it needs something to help refine the shapes. But its a workable start to something greater, I am sure.

Those sliders need some attention since they are probably out of order. Hopefully David won't mind setting them up in the correct format.

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


Last edited by mahvin on Sat Mar 26, 2011 11:04 pm, edited 1 time in total.

Top
 Post subject: Re: Stamp Filter for G'MIC
PostPosted: Sat Mar 26, 2011 11:01 pm  (#14) 
Offline
Global Moderator
User avatar

Joined: Oct 06, 2010
Posts: 4050
I took this:
Image

Ran the G'MIC Stamp filter:
Image

Then took it to potrace to finalize:
Image

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


Top
 Post subject: Re: Stamp Filter for G'MIC
PostPosted: Sun Mar 27, 2011 2:01 am  (#15) 
Offline
Global Moderator
User avatar

Joined: Oct 06, 2010
Posts: 4050
PC:

I have yet to create my own filter in G'MIC. I used anatron's command line entry as found on the Flickr link on the first post of this thread. I should spend more time trying to understand how everything relates, but just not enough hours in my day. All I know it that what I created works, although most likely not very accurately.

My goal was to get the stamp image, and then refine it somehow (anti-aliasing, perhaps?) to make the edges crisper, and then have the possibility of sharpening it further, maybe the ability to enlarge it, or change the colors for background and foreground. Something similar to Lyle's stencil preset, but keeping the image as a stamp, intact.

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


Top
 Post subject: Re: Stamp Filter for G'MIC
PostPosted: Mon Mar 28, 2011 8:51 am  (#16) 
Offline
GimpChat Member

Joined: Apr 12, 2010
Posts: 5870
I see
What for me was making complicated add controls was that at least 2 variables ($1 , $2, ) were already used in the original code even if they don't correspond to any user control

I suppose $3 and following were not used...that was important to know because as example $5 suppose that exist $4 , you can't jump from $3 to $5 with no a $4 in the code

so as example i could add a first control using $3, the following using $4 and so on.. more or less as you did

yet the fact that i had no idea how the first 2 variables were used in the original code made me very esitant to try

( that and some misterious errors i get with my last filter , that i want solve first, but that here is too OT )

_________________
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: Stamp Filter for G'MIC
PostPosted: Mon Mar 28, 2011 10:56 pm  (#17) 
Offline
GimpChat Member
User avatar

Joined: Sep 24, 2010
Posts: 12535
Two passes of G'MIC Paint then your Stamp preset (additional smoothness with the slider). :)

ref: http://www.fontplay.com/freephotos/seve ... 107-03.jpg


Attachments:
fp021107-03.png
fp021107-03.png [ 409.59 KiB | Viewed 2777 times ]

_________________
Lyle

Psalm 109:8

Image
Top
 Post subject: Re: Stamp Filter for G'MIC
PostPosted: Mon Mar 28, 2011 11:47 pm  (#18) 
Offline
Global Moderator
User avatar

Joined: Oct 06, 2010
Posts: 4050
Hmmmm... that looks pretty good, considering. Are you happy with it?

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


Top
 Post subject: Re: Stamp Filter for G'MIC
PostPosted: Mon Mar 28, 2011 11:53 pm  (#19) 
Offline
Retired Staff
User avatar

Joined: May 22, 2008
Posts: 6947
Location: Somewhere in GIMP
This one is small but I think it turned out rather nice.

Image

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


Top
 Post subject: Re: Stamp Filter for G'MIC
PostPosted: Tue Mar 29, 2011 12:00 am  (#20) 
Offline
GimpChat Member
User avatar

Joined: Sep 24, 2010
Posts: 12535
Maybe a little abstract, but when applied to wood engravings via bumpmap on texture, if makes more sense. I use this technique a lot for such renders. :)


Attachments:
wood_Engrave.jpg
wood_Engrave.jpg [ 622.43 KiB | Viewed 2770 times ]

_________________
Lyle

Psalm 109:8

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

All times are UTC - 5 hours [ DST ]


   Similar Topics   Replies 
No new posts Looking for the Text Stamp Plugin/Script

4

No new posts Attachment(s) Super-realistic stamp effect

5

No new posts Attachment(s) cli345's cartoon filter as a native GEGL Filter.

10

No new posts Attachment(s) Made with new filter in G'mic

23

No new posts Attachment(s) Carve.. filter

3



* Login  



Powered by phpBB3 © phpBB Group