Short Description

Removes a channel from the sequence. See also Extract Channel.

Versions

  • Version 1 • Released on: 2013-03-13 16:13:08
    Download
    Description:

    initial version

    importClass(Packages.icy.sequence.Sequence)
    importClass(Packages.icy.sequence.SequenceUtil)
    
    seq = getSequence()
    
    if (seq == null) throw "Please open a sequence first"
    if (seq.getSizeC() < 2) throw "Sequence does not have enough channels to perform this operation."
    
    // Removes index 1 (second channel) of the sequence
    SequenceUtil.removeChannel(seq, 1)

Leave a Review