Short Description

Generates a sequence and add it to the GUI. See also "Generate Image" script.

Versions

  • Version 1 • Released on: 2013-03-11 11:07:59
    Download
    Description:

    initial version

    importClass(Packages.icy.sequence.Sequence)
    importClass(Packages.icy.type.DataType)
    importClass(Packages.icy.image.IcyBufferedImage)
    
    // Create a new sequence
    seq = new Sequence()
    
    // Creates an image of 512x512 with 1 channel of type Unsigned Byte
    img = new IcyBufferedImage(512, 512, 1, DataType.UBYTE)
    seq.addImage(img)
    
    // set the name of the sequence
    seq.setName("My Generated Sequence")
    
    // add the sequence in the gui
    gui.addSequence(seq)
    

Leave a Review