Mobile app version of vmapp.org
Login or Join
Turnbaugh909

: Given an image modification on Gimp, how to obtain the convolution matrix In Gimp, there is a convolution matrix tool which lets the user define his own convolution matrix, and then see the

@Turnbaugh909

Posted in: #Gimp

In Gimp, there is a convolution matrix tool which lets the user define his own convolution matrix, and then see the result on the image.

I am writing software for image classification, and I need to do the opposite: play around with image modification parameters using the standard user interface, and if I get something interesting, use the corresponding mathematical operations in my software.

Is there a way to get the pixel-level operations that correspond to a given image modification on GIMP? (Or any other software?)

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Turnbaugh909

1 Comments

Sorted by latest first Latest Oldest Best

 

@BetL875

So, as @jooja puts it in the comments - not all oeprations are convolutions, nor does convolutions sum up that nicely.

Seen your comments, this is not actually what you are in need for - this specific requiste of "finding the equivalente convolution" could be the research work of a Computer Scientist doing Image Processing theoretical research.

Since you are simply trying to automate modifications to images, based on things you have done using the UI, you should resort to scripting. I do recomend using Python of the two pre-installed programming languages (the other, script-fu, being Scheme) - and simply make calls to the functions available that are equivalent to any actions taken on the UI.

GIMP can perform through scripting nearly 100% of the operations it can do via manual image editing - and a script can be run without GIMP ever opening a GUI Window - since you commented you'd want that behavior.

To get started, check the filters menu under python->console and use the browse button to see the available methods. To get started type image = gimp.image_list()[0] to get a reference to an open image. Further questions on scripting should be on stackoverflow.com –

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme