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

Snap Image MM

by tprovoost / Thomas Provoost

This script snaps an image with Micro-Manager.

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
/*
 * ThreadUtil is used to wait for the main GUI
 * to be instanciated. 
 * Package Tools contains various useful classes
 */
importClass(Packages.icy.main.Icy)
importClass(Packages.icy.sequence.Sequence)
importClass(Packages.icy.system.thread.ThreadUtil)

importPackage(Packages.plugins.tprovoost.Microscopy.MicroManagerForIcy)
importPackage(Packages.plugins.tprovoost.Microscopy.MicroManagerForIcy.Tools)

// get the main GUI in a variable
gui = MMMainFrame.getInstance()

// wait for the gui to be instanciated
gui.waitForInstance()

// get the core, now initialized
core = MicroscopeCore.getCore()

// capture an image
img = ImageGetter.snapImage(core)

// create a sequence from the image and add it
// into Icy
Icy.addSequence(new Sequence(img))

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



Icy script publication Id : B9Q5G1