Search found 80 matches

by CarlZeissMicroscopy3
Tue Oct 19, 2021 12:52 pm
Forum: Image Processing
Topic: Issue opening a .czmodel in python
Replies: 1
Views: 3

Re: Issue opening a .czmodel in python

Hello Elizabeth Pereira, Files exported from the Zeiss Intellesis module (wizard, trained etc.) are not ONNX compatible. In Open Application Development (OAD) of Zen there is an object model which can be accessed via macro (Iron-Python). The root object is ZenIntellesis and features are like: ZenInt...
by CarlZeissMicroscopy3
Mon Oct 18, 2021 1:53 pm
Forum: ZEN Core Specific Topics
Topic: Apply macro on selected images in Output area
Replies: 2
Views: 68

Re: Apply macro on selected images in Output area

Hello Fredrik Olsson, starting with Zen Core 3.4 the command Zen.Application.GetFreeModeSelectedOutputParameters() will be available. So the following lines of code will handle all selected images: selectedOutputParameters = Zen.Application.GetFreeModeSelectedOutputParameters() print OutputParameter...
by CarlZeissMicroscopy3
Thu Oct 07, 2021 9:52 am
Forum: Miscellaneous
Topic: General Approach to Start an External Application
Replies: 9
Views: 6222

Re: General Approach to Start an External Application

Hello Anand Ranjan, I was wondering if OAD supports opening Fiji in Headless mode. Please keep in mind that with import clr from System.Diagnostics import Process app = Process(); you import a library from the .Net Framework in OAD and therefore no direct 'OAD support opening Fiji' exists. So, if yo...
by CarlZeissMicroscopy3
Tue Oct 05, 2021 9:15 am
Forum: Image Acquisition
Topic: Analyze Z stack images and choose Z plane to image
Replies: 12
Views: 497

Re: Analyze Z stack images and choose Z plane to image

Hello Anand Ranjan,

thank you for posting your final solution!

Although the empty file might be a peculiarity of Fiji other people can profit from your experience.
by CarlZeissMicroscopy3
Thu Sep 30, 2021 10:21 am
Forum: Miscellaneous
Topic: Install opencv-contrib
Replies: 6
Views: 278

Re: Install opencv-contrib

Hello Matthew Cottrell, thank you very much for your contribution! This is apparently one way to go. By using import win32com.client Zen = win32com.client.GetActiveObject("Zeiss.Micro.Scripting.ZenWrapperLM") it must be clear that this is just for Zen blue and cannot be used in case of Zen...
by CarlZeissMicroscopy3
Wed Sep 29, 2021 11:27 am
Forum: Image Acquisition
Topic: Analyze Z stack images and choose Z plane to image
Replies: 12
Views: 497

Re: Analyze Z stack images and choose Z plane to image

Hello Anand Ranjan, happy to hear that your OAD macro works great. File.Exists(path) is not an OAD command. This is one of the strengths of OAD that you can import .Net DLLs e.g., from the .Net Framework, and use them! You get class File by importing from System.IO at the beginning of your code. In ...
by CarlZeissMicroscopy3
Mon Sep 27, 2021 11:44 am
Forum: Image Acquisition
Topic: ZEN multiple Z stack acquisitions
Replies: 1
Views: 45

Re: ZEN multiple Z stack acquisitions

Hello J Seeler, from my understanding you want to fix your z-Stack with the first (bottom) slice. Did you try the Offset in the Center tab. This can shift the ‘center’ to the ‘first’ slice. Something like Offset 15 and Interval 3, Slices 11 (Range 30) Maybe the ‘Show all’ on the right-hand side of t...
by CarlZeissMicroscopy3
Thu Sep 16, 2021 12:24 pm
Forum: ZEN Core Specific Topics
Topic: Apply macro on selected images in Output area
Replies: 2
Views: 68

Re: Apply macro on selected images in Output area

Hello Fredrik Olsson,

sorry, but this is not possible as

Zen.Application.GetAllOutputParameters()

has no connection to the layer representing the images etc.

But it is certainly a good feature so I will put it up for internal discussion.
by CarlZeissMicroscopy3
Tue Aug 31, 2021 11:03 am
Forum: Instrument Control
Topic: ZenHardwareSetting in Python Script
Replies: 5
Views: 228

Re: ZenHardwareSetting in Python Script

Hello Matthew Cottrell, yes, this is because COM does not support 'method overloading'. For a short demonstration we use the ZenImage class: As Python supports 'method overloading' you can write the following code: image = Zen.Application.ActiveDocument image.Save() image.Save(fileName) But in COM t...
by CarlZeissMicroscopy3
Fri Aug 27, 2021 3:22 pm
Forum: Image Processing
Topic: Stitching Tiled image within Macro environment
Replies: 1
Views: 121

Re: Stitching Tiled image within Macro environment

Hello Aaron Skubal,

Code: Select all

Zen.Processing.Transformation.Geometric.Stitching(...)
I hope this is the answer to your problem.

By the way: it is possible to search (top, right hand side of page) in the forum for 'stitching'.