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

Remove Channel

by tprovoost / Thomas Provoost

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

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

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



Icy script publication Id : U1G1V1