Gimp-Forum.net

Full Version: filter math
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
How do I obtain the algo/kernel/convolution mask for the various filters in gimp?

For instance, I was interested in the numbers behind  https://docs.gimp.org/en/plug-in-oilify.html

so I could customize them per my needs, and create new filters per my needs.
Quote:...snip...so I could customize them per my needs, and create new filters per my needs.

Some of these old Gimp plugins are more than a bit obscure in how they work

Somebody might be able to tell you.

For example this code, https://github.com/GNOME/gimp/blob/maste...n/oilify.c It is commented & you might glean a little insight.

You might be better off using the functions from an existing plugin, I am thinking of the gimp plugin gmic.

Try asking your question on https://discuss.pixls.us/ the creator of gmic looks in there.
(04-19-2018, 04:13 PM)rich2005 Wrote: [ -> ]
Quote:...snip...so I could customize them per my needs, and create new filters per my needs.

Some of these old Gimp plugins are more than a bit obscure in how they work

Somebody might be able to tell you.

For example this code,  https://github.com/GNOME/gimp/blob/maste...n/oilify.c It is commented & you might glean a little insight.

You might be better off using the functions from an existing plugin, I am thinking of the gimp plugin gmic.

Try asking your question on https://discuss.pixls.us/ the creator of gmic looks in there.

thanks i'll try there.
In case you ever come back

There is a old java application 'painterly' which can create an 'oilify' type of effect.

This page: http://www.mrl.nyu.edu/publications/painterly98/ has a PDF with details of the algorithms.

This page has various papers for various graphics projects http://www.dgp.toronto.edu/~hertzman/research.html Might be worth a trawl through.