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

Combine Channels

by tprovoost / Thomas Provoost

Extracts channel 0 and 2 from a sequence and combine them.

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
 * This script extracts the channel 0 and 2 of a colored image

// get sequence
seq = getSequence()
if (seq == null) throw "Please open a sequence first"

// extract channels
seq0 = SequenceUtil.extractChannel(seq, 0)
seq2 = SequenceUtil.extractChannel(seq, 2)

// combine both channels. When combining, it is necessary to 
// ALWAYS have the same dimensions.
merged = SequenceUtil.concatC([seq0, seq2])

// add the sequence

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

Icy script publication Id : G8G5Q2