It is currently Wed Jul 03, 2024 2:50 pm


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: Script-fu Curve Bend
PostPosted: Mon Aug 19, 2019 4:43 pm  (#1) 
Offline
New Member

Joined: Aug 19, 2019
Posts: 3
Hello,

Apologies if this is the wrong area to post my question. I am looking for a tutorial to automate a workflow.
I am pretty much a Gimp Newbie. What I hope to achieve:

Begin with a single "base" image (It is a cross section of a tree trunk)

I want create X new images from the base image by passing random values to the Curve Bend filter

I want to create many (thousands) of variations of the base image by applying the Curve Bend filter, as well as maybe change rotation and image size.

Any advice would be appreciated


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: Script-fu Curve Bend
PostPosted: Tue Aug 20, 2019 1:39 am  (#2) 
Offline
Script Coder
User avatar

Joined: Oct 25, 2010
Posts: 4756
You don't need a tutorial to automate a workflow, you need to learn to code or find a a programmer to do it for you.

But I don't see the point of generating random images, this must a part of a bigger problem?

_________________
Image


Top
 Post subject: Re: Script-fu Curve Bend
PostPosted: Tue Aug 20, 2019 8:04 am  (#3) 
Offline
New Member

Joined: Aug 19, 2019
Posts: 3
I am a developer. I am just very new to Gimp and I am trying to understand how Gimp can batch commands via .SCM files. I have a sample that I am working with and I have read the help documentation. I was just hoping someone had already created a similar workflow and was willing to share the code.

You are correct that this is part of a bigger problem. I need training data for a Semantic Segmentation (machine learning) use case. However, I do not have thousands or millions of images with which to train my algorithm. Fortunately for me, I can generate "synthetic" training data by taking the cross section of a log and modifying it several thousand times and then taking those generated images and stack them together into randomized "log piles". Since no two log piles are the same, this will be adequate for training a model.

Thanks!


Top
 Post subject: Re: Script-fu Curve Bend
PostPosted: Wed Aug 21, 2019 3:47 am  (#4) 
Offline
Script Coder
User avatar

Joined: Oct 25, 2010
Posts: 4756
Since you are in ML you are likely familiar with Python, and you can also write Python scripts for Gimp.

To call Gimp in batch mode:

https://stackoverflow.com/questions/444 ... 0#44435560

Some information:

https://www.gimp-forum.net/Thread-Debug ... in-Windows

Some samples (there are "GUI scripts", not batch scripts, but they show you how you can use the API:

http://sourceforge.net/projects/gimp-to ... s/scripts/

The Gimp Python doc:

http://www.gimp.org/docs/python/index.html

For individual calls, Fileters>Python-fu>Console>Browse, and use the search bar.

_________________
Image


Top
 Post subject: Re: Script-fu Curve Bend
PostPosted: Wed Aug 21, 2019 9:26 am  (#5) 
Offline
New Member

Joined: Aug 19, 2019
Posts: 3
Thank you!


Top
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC - 5 hours [ DST ]


   Similar Topics   Replies 
No new posts Plugin or Script to bend/curve text

17

No new posts Attachment(s) Curve Bend (warping text)

6

No new posts Attachment(s) Double Curve Bend using paths/vectors

6

No new posts Curve Bend tool called from python giving error not very consistent.

0

No new posts Attachment(s) Bend Text-Logo as helper Ofn-bend-path

75



* Login  



Powered by phpBB3 © phpBB Group