Capturing interactive parameters for image processing

Find inspirations how to access the ZEN application model
Post Reply
Dan Stevens
Posts: 7
Joined: Sat Aug 15, 2020 5:18 am

Capturing interactive parameters for image processing

Post by Dan Stevens »

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
CarlZeissMicroscopy3
Posts: 180
Joined: Wed May 20, 2020 10:10 am

Re: Capturing interactive parameters for image processing

Post by CarlZeissMicroscopy3 »

Hello Dan,

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)
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.
Dan Stevens
Posts: 7
Joined: Sat Aug 15, 2020 5:18 am

Re: Capturing interactive parameters for image processing

Post by Dan Stevens »

This is perfect, and I would not have considered this, thank you very much.
D
Post Reply