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

Add a black channel

by fab / Fabrice de Chaumont

Adds a black channel to an existing sequence

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.type.collection.array.ArrayUtil)
importClass(Packages.icy.type.collection.array.Array1DUtil)
importClass(Packages.icy.image.IcyBufferedImage)
importClass(Packages.java.util.ArrayList)
importClass(Packages.icy.sequence.Sequence)
importClass(Packages.icy.sequence.SequenceUtil)
importClass(Packages.icy.main.Icy)

inputSequence = getSequence()

sequenceCopy = SequenceUtil.getCopy( inputSequence )

workingSequence = SequenceUtil.concatC([inputSequence,sequenceCopy] )

list = workingSequence.getAllImage()
for ( i = 0 ; i< list.size() ; i++ )
{
	image = list.get(i);
	ArrayUtil.fill( image.getDataXY( 1 ) , 0 , image.getSizeX()*image.getSizeY() , 0 )
}

Icy.addSequence( workingSequence )

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



Icy script publication Id : J4H7Q8