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')
##
#######################################################