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

Generate Sequence

by tprovoost / Thomas Provoost

Generates a sequence and add it to the GUI. See also "Generate Image" 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.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)

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



Icy script publication Id : A7J7G9