[Gimp-developer] How to compile a vala GIMP plugin on Windows pc?

2020-12-27 Thread Pen Guin via gimp-developer-list
Hi,

I have downloaded GIMP 2.99.4 on my Windows 8 pc.

I want to compile the goat-exercise vala plugin shipped with GIMP.  Can
anyone please tell me how can I compile a vala plugin on my pc? What other
softwares AND/OR dependent-files do I need to download? What command and
attributes do I need to pass to the vala compiler to get a working exe
without any errors?

 Thanks.
___
gimp-developer-list mailing list
List address:gimp-developer-list@gnome.org
List membership: https://mail.gnome.org/mailman/listinfo/gimp-developer-list
List archives:   https://mail.gnome.org/archives/gimp-developer-list


Re: [Gimp-developer] deriving transform by comparing image before/after edit

2020-12-27 Thread Bill Ross via gimp-developer-list

Thanks Alexandre!

I figured I'd most likely be writing the code if the math is possible - 
it would start as a standalone batch prog that could be appified. But 
I'd need an obvious path to even start, since I'm more of a 
jack-of-all-trades programmer, e.g. not sure how close LUTs could come.


I realized it would be capable of reverse engineering any global 
filters, so could irk anyone who makes money from them.


Here's where I tried the question earlier:

https://www.reddit.com/r/computervision/comments/kktdq4/derive_transformation_matrix_from_two_photos/

My current editing backlog is 150K photos.

Bill


On 12/27/20 4:06 AM, Alexandre Prokoudine via gimp-developer-list wrote:

Hi Bill,

I don't know of plugins that would calculate a matrix in GIMP. There's
a plugin called GetCurves by Elsamuko [1] that calculates a rough
approximation of a color transform between two layers and creates an
RGB curves preset.

Due to its nature, the plugin has obvious issues treating different
hue ranges differently [2] but maybe it's a motivation for someone to
come up with a better tool. Although I'd be damned if I knew how you
would then apply a generated 3x3 matrix to a different image :)

I recently looked at free/libre options to create 3D LUT files, and
the existing options like Harlequin [3] are not very encouraging yet.

[1] 
https://github.com/elsamuko/gimp-elsamuko/tree/master/plugins/elsamuko-get-curves
[2] https://twitter.com/lgworld/status/1338597821881192448
[3] https://github.com/dunkyp/harlequin/

Alex

On Sun, Dec 27, 2020 at 2:47 PM Bill Ross via gimp-developer-list
 wrote:

Given a pair of before/after jpeg photos edited with global-effect
commands (vs. operations on selected areas), is it possible to derive
transformation matrix/matrices that reproduce the result from the
original? Presumably by iterating over all the pixels in a 1:1 mapping.

My hope is to train neural nets to predict the matrix operation(s)
required. Example:

http://phobrain.com/pr/home/gallery/pair_vert_manual_9_2845x2.jpg

Thanks,

Bill


--
Phobrain.com
___
gimp-developer-list mailing list
List address:gimp-developer-list@gnome.org
List membership: https://mail.gnome.org/mailman/listinfo/gimp-developer-list
List archives:   https://mail.gnome.org/archives/gimp-developer-list

___
gimp-developer-list mailing list
List address:gimp-developer-list@gnome.org
List membership: https://mail.gnome.org/mailman/listinfo/gimp-developer-list
List archives:   https://mail.gnome.org/archives/gimp-developer-list

--
Phobrain.com
___
gimp-developer-list mailing list
List address:gimp-developer-list@gnome.org
List membership: https://mail.gnome.org/mailman/listinfo/gimp-developer-list
List archives:   https://mail.gnome.org/archives/gimp-developer-list


Re: [Gimp-developer] some functions missing from procedure browser

2020-12-27 Thread Lloyd Konneker via gimp-developer-list
I tried my suggestion.  It seems like Gimp.Drawable.apply_operation(node)
is necessary but not exposed in libgimp.  A pipe dream then.
___
gimp-developer-list mailing list
List address:gimp-developer-list@gnome.org
List membership: https://mail.gnome.org/mailman/listinfo/gimp-developer-list
List archives:   https://mail.gnome.org/archives/gimp-developer-list


Re: [Gimp-developer] some functions missing from procedure browser

2020-12-27 Thread Lloyd Konneker via gimp-developer-list
We don't need to enhance Script-Fu to be gegl aware.
We just need a plugin that is gegl aware.
Call the plugin "python-fu-do-gegl-op."

Given a drawable, an operation name like "gegl:median-blur" and a list of
arguments (usually all numeric)
the plugin invokes the gegl operation on the drawable.
Gegl is introspectable, it will tell you the types for parameters to any
operation,
and the plugin can check and convert arguments if needed, or substitute
defaults.

The plugin could be written in Python, which can introspect both Gimp and
Gegl.
When the plugin is introspecting the Gegl op, it is second-order
introspecting.
You can't write the plugin in ScriptFu because it doesn't support GObject
Introspection.
You could write the plugin in C, but easier in a higher language.

A ScriptFu script calls the plugin in the PDB:
(python-fu-do-gegl-op drawable "gegl:median-blur" ( 1, 2.0, ...))

All gegl ops SHOULD be in the PDB, but when they are not,
you fall back to this plugin.
___
gimp-developer-list mailing list
List address:gimp-developer-list@gnome.org
List membership: https://mail.gnome.org/mailman/listinfo/gimp-developer-list
List archives:   https://mail.gnome.org/archives/gimp-developer-list


Re: [Gimp-developer] deriving transform by comparing image before/after edit

2020-12-27 Thread Alexandre Prokoudine via gimp-developer-list
Hi Bill,

I don't know of plugins that would calculate a matrix in GIMP. There's
a plugin called GetCurves by Elsamuko [1] that calculates a rough
approximation of a color transform between two layers and creates an
RGB curves preset.

Due to its nature, the plugin has obvious issues treating different
hue ranges differently [2] but maybe it's a motivation for someone to
come up with a better tool. Although I'd be damned if I knew how you
would then apply a generated 3x3 matrix to a different image :)

I recently looked at free/libre options to create 3D LUT files, and
the existing options like Harlequin [3] are not very encouraging yet.

[1] 
https://github.com/elsamuko/gimp-elsamuko/tree/master/plugins/elsamuko-get-curves
[2] https://twitter.com/lgworld/status/1338597821881192448
[3] https://github.com/dunkyp/harlequin/

Alex

On Sun, Dec 27, 2020 at 2:47 PM Bill Ross via gimp-developer-list
 wrote:
>
> Given a pair of before/after jpeg photos edited with global-effect
> commands (vs. operations on selected areas), is it possible to derive
> transformation matrix/matrices that reproduce the result from the
> original? Presumably by iterating over all the pixels in a 1:1 mapping.
>
> My hope is to train neural nets to predict the matrix operation(s)
> required. Example:
>
> http://phobrain.com/pr/home/gallery/pair_vert_manual_9_2845x2.jpg
>
> Thanks,
>
> Bill
>
>
> --
> Phobrain.com
> ___
> gimp-developer-list mailing list
> List address:gimp-developer-list@gnome.org
> List membership: https://mail.gnome.org/mailman/listinfo/gimp-developer-list
> List archives:   https://mail.gnome.org/archives/gimp-developer-list
___
gimp-developer-list mailing list
List address:gimp-developer-list@gnome.org
List membership: https://mail.gnome.org/mailman/listinfo/gimp-developer-list
List archives:   https://mail.gnome.org/archives/gimp-developer-list


[Gimp-developer] deriving transform by comparing image before/after edit

2020-12-27 Thread Bill Ross via gimp-developer-list
Given a pair of before/after jpeg photos edited with global-effect 
commands (vs. operations on selected areas), is it possible to derive 
transformation matrix/matrices that reproduce the result from the 
original? Presumably by iterating over all the pixels in a 1:1 mapping.


My hope is to train neural nets to predict the matrix operation(s) 
required. Example:


http://phobrain.com/pr/home/gallery/pair_vert_manual_9_2845x2.jpg

Thanks,

Bill


--
Phobrain.com
___
gimp-developer-list mailing list
List address:gimp-developer-list@gnome.org
List membership: https://mail.gnome.org/mailman/listinfo/gimp-developer-list
List archives:   https://mail.gnome.org/archives/gimp-developer-list


[Gimp-developer] How to compile a vala plugin on Windows pc?

2020-12-27 Thread Pen Guin via gimp-developer-list
Hi,

I have downloaded GIMP 2.99.4 on my Windows 8 pc. Can anyone please tell me
how can I compile a vala plugin on my pc? What other softwares do I need to
download? What command and attributes do I need to pass to the vala
compiler to get a working exe without any errors?

 Thanks.
___
gimp-developer-list mailing list
List address:gimp-developer-list@gnome.org
List membership: https://mail.gnome.org/mailman/listinfo/gimp-developer-list
List archives:   https://mail.gnome.org/archives/gimp-developer-list