Need help or advice ? Come to the Icy club ! - Every Wenesday morning from 9h30 to 12h30 - Francois Jacob Building - Main hall - Pasteur
Register

Micro-Manager Z stack acquisition

by stef / Stephane Dallongeville

This java script show how to perform a small Z-Stack acquisition trough Micro-Manager.

WARNING: You need to start Micro-Manager for Icy plugin before executing the script.

version 1 (last version):

download to use and modify in Icy. How do I use scripts ? A Problem ? ask the community.
Changelog for this version: initial version
importClass(Packages.icy.sequence.Sequence)
importClass(Packages.plugins.tprovoost.Microscopy.MicroManager.MicroManager)
importClass(Packages.plugins.tprovoost.Microscopy.MicroManager.tools.StageMover)

z = 0
 // create the result sequence
sequence = new Sequence()

 // move to position (5, 5, 5)
 StageMover.moveXYAbsolute(5, 5)
StageMover.moveZAbsolute(5)

 // acquire 1 image
 image = MicroManager.snapImage()
 // set it in resulting sequence at position 0
 sequence.setImage(0, z++, image)
 // shift microscope Z position by 10
 StageMover.moveZRelative(10)

 // acquire 1 image
 image = MicroManager.snapImage()
 // set it in resulting sequence at position 0
 sequence.setImage(0, z++, image)
 // shift microscope Z position by 10
 StageMover.moveZRelative(10)

  // acquire last image
 image = MicroManager.snapImage()
 // set it in resulting sequence at position 0
 sequence.setImage(0, z, image)

 // show the sequence in Icy
gui.addSequence(sequence)

This script has no documentation. A Problem ? ask the community.



Icy script publication Id : T6D4J7