OAD Forum,
I would like to automate the processing of a series of files, the first of which would be processed interactively, and all further files would be processed using the parameters used for the first file.
I require a way in which to capture the user set parameters for the first interactive processing.
In theory I could search through the meta-data, but this is a mess when doing several processing steps. There must be an easier way than this?
Regards,
Dan
Capturing interactive parameters for image processing
-
- Posts: 7
- Joined: Sat Aug 15, 2020 5:18 am
-
- Posts: 180
- Joined: Wed May 20, 2020 10:10 am
Re: Capturing interactive parameters for image processing
Hello Dan,
I'm not so sure if I understood everything in detail but the following code worked for me:
There are two images (Documents[0], Documents[1]) open in Zen.
In the first step the lowpass is started in interactive mode.
The second lowpass has just the image as parameter.
The parameters of the first interactive step are applied to the first and the second image.
I hope this helps.
I'm not so sure if I understood everything in detail but the following code worked for me:
Code: Select all
image0 = Zen.Application.Documents[0]
out0 = Zen.Processing.Filter.Smooth.Lowpass(image0,True)
Zen.Application.Documents.Add(out0)
image1 = Zen.Application.Documents[1]
out1 = Zen.Processing.Filter.Smooth.Lowpass(image1)
Zen.Application.Documents.Add(out1)
In the first step the lowpass is started in interactive mode.
The second lowpass has just the image as parameter.
The parameters of the first interactive step are applied to the first and the second image.
I hope this helps.
-
- Posts: 7
- Joined: Sat Aug 15, 2020 5:18 am
Re: Capturing interactive parameters for image processing
This is perfect, and I would not have considered this, thank you very much.
D
D