It is currently Wed Jun 26, 2024 9:47 pm


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 12 posts ] 
Author Message
 Post subject: GEGL filter that makes Basic Pencil Drawings
PostPosted: Sun May 15, 2022 7:42 pm  (#1) 
Offline
GimpChat Member
User avatar

Joined: Oct 31, 2020
Posts: 1446
Filter works best in Solid color backgrounds. It looks like crap if a lot of information is going on in the background.
https://github.com/LinuxBeaver/gegl-pen ... l-drawing/
@MareroQ will likely chime in with a Windows build port.

Image

Image


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: GEGL filter that makes Basic Pencil Drawings
PostPosted: Sun May 15, 2022 9:51 pm  (#2) 
Offline
GimpChat Member

Joined: Jul 28, 2018
Posts: 1196
Good work, contrast_. I will like to create Gegl plugin, but I don't know how. Maybe you can post the basics? :)

_________________
https://www.deviantart.com/pocholo17
Image


Top
 Post subject: Re: GEGL filter that makes Basic Pencil Drawings
PostPosted: Sun May 15, 2022 11:23 pm  (#3) 
Offline
GimpChat Member
User avatar

Joined: Jan 13, 2011
Posts: 2260
Location: Poland
Version for Gimp-2.10.30 Win 64 Bit attached.
Place the file in Gegl plugins in a directory: ... \lib\gegl-0.4\

In menu Tools➤GEGL Operation➤Pencil drawing


We have cli345 on the forum - a comic book style master and Gegl Graph expert - maybe he will suggest something or join this game?


Attachments:
sketch_Win64bit.zip [35.32 KiB]
Downloaded 63 times

_________________
Image

Slava
Ukraini!
Top
 Post subject: Re: GEGL filter that makes Basic Pencil Drawings
PostPosted: Mon May 16, 2022 6:41 pm  (#4) 
Offline
GimpChat Member
User avatar

Joined: Oct 31, 2020
Posts: 1446
Pocholo wrote:
Good work, contrast_. I will like to create Gegl plugin, but I don't know how. Maybe you can post the basics? :)

All I am doing is stitching more simple gegl operations together. look at my .c files on github and gegl.org and maybe you'll get the hang of it.


Top
 Post subject: Re: GEGL filter that makes Basic Pencil Drawings
PostPosted: Thu May 19, 2022 7:58 am  (#5) 
Offline
GimpChat Member

Joined: Apr 19, 2021
Posts: 121
Location: France
Hello, :)

Here is yet another pencil gegl graph:
noise-reduction
domain-transform n-iterations=5
difference-of-gaussians radius1=1 radius2=0.33
gray
levels in-low=0.004 in-high=0.009
invert-gamma
rgb-clip
noise-reduction
Here are examples:
Attachment:
examples_orig.jpg
examples_orig.jpg [ 183.79 KiB | Viewed 1908 times ]

Attachment:
examples_geglPencil.jpg
examples_geglPencil.jpg [ 153.6 KiB | Viewed 1908 times ]

Have fun! :)

_________________
Photo to cartoon : https://github.com/cl4cnam/gimp_cartoon_plugin


Top
 Post subject: Re: GEGL filter that makes Basic Pencil Drawings
PostPosted: Thu May 19, 2022 9:07 am  (#6) 
Offline
GimpChat Member
User avatar

Joined: Oct 31, 2020
Posts: 1446
cli345 wrote:
Hello, :)

Here is yet another pencil gegl graph:
noise-reduction
domain-transform n-iterations=5
difference-of-gaussians radius1=1 radius2=0.33
gray
levels in-low=0.004 in-high=0.009
invert-gamma
rgb-clip
noise-reduction
Here are examples:
Attachment:
examples_orig.jpg

Attachment:
examples_geglPencil.jpg

Have fun! :)


I can try to make this into a filter and give you full credit for discovering the algorithm.

levels
domain transform
and difference of gaussian

will have sliders. Everything else will be hidden.


Top
 Post subject: Re: GEGL filter that makes Basic Pencil Drawings
PostPosted: Thu May 19, 2022 10:14 am  (#7) 
Offline
GimpChat Member
User avatar

Joined: Oct 31, 2020
Posts: 1446
I make a filter that uses your algorithm and it will replace my gegl:pencil

This works on images even with complex backgrounds so i will have to change the description
Image


Top
 Post subject: Re: GEGL filter that makes Basic Pencil Drawings
PostPosted: Thu May 19, 2022 10:46 am  (#8) 
Offline
GimpChat Member
User avatar

Joined: Oct 31, 2020
Posts: 1446
https://github.com/LinuxBeaver/gegl-pen ... il-drawing
Image

gegl:pencil has had a major overhaul. cli345 gets the credit. This algorithm unlike mine works in noisy backgrounds


MareroQ will have to recompile for Windows. lol


Top
 Post subject: Re: GEGL filter that makes Basic Pencil Drawings
PostPosted: Thu May 19, 2022 11:20 am  (#9) 
Offline
GimpChat Member
User avatar

Joined: Jan 13, 2011
Posts: 2260
Location: Poland
New version for Gimp-2.10.30 Win 64 Bit attached.
Nice collaboration :bigthup


Attachments:
sketch_new_Win64bit.zip [35.66 KiB]
Downloaded 77 times

_________________
Image

Slava
Ukraini!
Top
 Post subject: Re: GEGL filter that makes Basic Pencil Drawings
PostPosted: Mon Aug 15, 2022 5:15 am  (#10) 
Offline
GimpChat Member
User avatar

Joined: May 24, 2021
Posts: 787
Location: SEA - South East Asia
I'm quite impressed by this GEGL drawing filter, comparing with G'MIC (sketch or pencil filters), this GEGL is a winner for me (even though I don't use those type of filters).
Image

I got few problem, tough, but the filter still work once I closed the GIMP window's bug ;)
Image

_________________
Patrice


Top
 Post subject: Re: GEGL filter that makes Basic Pencil Drawings
PostPosted: Mon Sep 12, 2022 2:07 pm  (#11) 
Offline
GimpChat Member
User avatar

Joined: Oct 31, 2020
Posts: 1446
I will be removing the remove color mode from GEGL:photo2cartoon because this filter literally does that but better.

I don't want to fuse the two filters as gegl:pencil is much faster loading then gegl:photo2cartoon.


Top
 Post subject: Re: GEGL filter that makes Basic Pencil Drawings
PostPosted: Mon Sep 12, 2022 4:14 pm  (#12) 
Offline
GimpChat Member
User avatar

Joined: Oct 31, 2020
Posts: 1446
Image


Top
Post new topic Reply to topic  [ 12 posts ] 

All times are UTC - 5 hours [ DST ]


   Similar Topics   Replies 
No new posts merging two pencil drawings

11

No new posts Attachment(s) gegl makes a simple starburst

10

No new posts Attachment(s) Baby's first GEGL plugin - a very basic GEGL plugin anyone can make.

9

No new posts Attachment(s) GEGL Charcoal/Colored Pencil Sketch

2

No new posts Attachment(s) GEGL Inner Glow (Filter of itself but now ships with GEGL Effects)

37



* Login  



Powered by phpBB3 © phpBB Group