Short Description

This script snaps an image with Micro-Manager.

Versions

  • Version 1 • Released on: 2013-03-11 14:00:33
    Download
    Description:

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

Leave a Review