Short Description

Call an ImageJ Plugin from the Script.

Versions

  • Version 1 • Released on: 2013-03-08 17:28:08
    Download
    Description:

    initial version

    importClass(Packages.icy.imagej.ImageJUtil)
    importClass(Packages.ij.IJ)
    
    // Get the focused sequence, test if null or not.
    seq = getSequence()
    if (seq == null) throw "No sequence opened"
    
    // Convert the sequence into an understanble object for ImageJ
    imPlus = ImageJUtil.convertToImageJImage(seq, null)
    
    // Run the IJ Plugin
    IJ.run(imPlus, "Find Edges", "")
    
    // notify Icy that the data changed
    seq.dataChanged()

Leave a Review