Gimp-Forum.net
filter math - Printable Version

+- Gimp-Forum.net (https://www.gimp-forum.net)
+-- Forum: GIMP (https://www.gimp-forum.net/Forum-GIMP)
+--- Forum: General questions (https://www.gimp-forum.net/Forum-General-questions)
+--- Thread: filter math (/Thread-filter-math)



filter math - buffalo - 04-19-2018

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.


RE: filter math - rich2005 - 04-19-2018

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/master/plug-ins/common/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.


RE: filter math - buffalo - 04-19-2018

(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/master/plug-ins/common/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.


RE: filter math - rich2005 - 04-20-2018

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.