Create an image analysis setting with wizard

Share your programming ideas for various measurement and analysis tasks here
Post Reply
user-4
Posts: 397
Joined: Thu Jan 01, 1970 1:00 am

Create an image analysis setting with wizard

Post by user-4 »

Code: Select all

#######################################################
## M E A S U R E M E N T   A N D   A N A L Y S I S  
##
## Macro name: Create an image analysis setting with wizard
## Required files: cells1.czi
##
## LOAD IMAGE, CREATE A NEW ANALYSIS SETTING, 
## START WIZARD TO DEFINE THE SETTING, SAVE SETTING
## 
#######################################################
##
##
## Remove all open documents
Zen.Application.Documents.RemoveAll()
##
## Load image automatically
image = Zen.Application.LoadImage("C:\\OAD\\Input\\CZI Images\\Micron Scaled\\cells1.czi", False)
Zen.Application.Documents.Add(image)
## Create a new analysis setting
ias = ZenImageAnalysisSetting()
## Start wizard to define the setting
Zen.Analyzing.StartAnalysisSettingWizard(image,ias)
## Save the setting
ias.Save('MyAnalysisSetting')
##
#######################################################
Post Reply