export the stitching image to zen connect ?

Your place to discuss general handling of images and the CZI file format
Post Reply
user-6334
Posts: 6
Joined: Thu Jan 01, 1970 1:00 am

export the stitching image to zen connect ?

Post by user-6334 »

I would to know is it possible that macro can do the automatically export and generate project in ZEN Connect after stitching ?

## A C Q U I S I T I O N
##
## Macro name: Overview Stitching
## Required files: TileCoin50x.czexp
## Required hardware: camera, microscope, scanningstage
##
## LOAD EXPERIMENT, EXECUTE EXPERIMENT, DISPLAY AND SAVE ACQUIRED IMAGE AUTOMATICALLY
## (2x2 tiles of the scanningstage)
##
#######################################################
##
## Remove all open images
Zen.Application.Documents.RemoveAll()
##
hardwaresetting1 = ZenHardwareSetting()
hardwaresetting1.SetParameter('MTBZoom', 'Position', '0.8')
Zen.Devices.ApplyHardwareSetting(hardwaresetting1)
Zen.Application.Pause('Instructure \n1) Click Acquistion (2nd Top) \n2) Select TileCoin50x (pulldown) \n3) Click Continue')
## Define experiment
exp = ZenExperiment()
## Load experiment
exp.Load("TileCoin50x.czexp",ZenSettingDirectory.User)
image = Zen.Acquisition.Execute(exp)
## save image
path = Zen.Application.Environment.GetFolderPath(ZenSpecialFolder.ImageAutoSave)
fullPath = path + '\\' + image.Name
#image.Save(fullPath)

Zen.Application.ShowWindow("NewDocument")
#image.Close()
##
#######################################################
user-8
Posts: 63
Joined: Thu Jan 01, 1970 1:00 am

Importing Images into ZEN Connect can be automated

Post by user-8 »

Hi,

yes this is possible. Please have a look here:

https://github.com/zeiss-microscopy/OAD ... EN_Connect
user-6334
Posts: 6
Joined: Thu Jan 01, 1970 1:00 am

Post by user-6334 »

wow! that's very helpful. thanks you !
user-6334
Posts: 6
Joined: Thu Jan 01, 1970 1:00 am

Post by user-6334 »

Now i can exported to zen connect after stitching images. But i got message "No Preview Avaliable" when i load a zen connect project which is created from this script. (https://github.com/zeiss-microscopy/OAD ... EN_Connect)

Meanwhile if i created new zen connect project by normally procedure it is work. I can load the project and preview avaliable.

These are run on ZEN 3.0 Blue.

attached image.
The attachment ZEN CONNECT.jpg is no longer available
Attachments
ZEN  CONNECT.jpg
ZEN CONNECT.jpg (277.38 KiB) Viewed 2078 times
Post Reply