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

AllLeica2tif

by rouviere / Christian rouviere

This script will convert each sequence in a .lei/.lif file in individual Tif file.
Convert sequences are recorded in the same directory under /result

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 open a lif or lei leica file and save each sequence separatly in tif
//Icy coding 22 mai 2014
//Stephane Dallongeville & Christian rouviere
importClass(java.io.File)
importClass(Packages.icy.file.FileUtil)
importClass(Packages.icy.file.Saver)
importClass(Packages.icy.sequence.MetaDataUtil)
importClass(Packages.plugins.tprovoost.scripteditor.uitools.filedialogs.FileDialog)
importClass(Packages.icy.file.Loader)

// Open a file dialog and returns the file
f = FileDialog.open()

if (f == null) throw "User cancelled!"

metaData = Loader.getMetaData(f.getAbsolutePath())
path = f.getAbsolutePath()

output0 = f
output1 = MetaDataUtil.getNumSerie(metaData)-1
print(output1)

for(i=0;i

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



Icy script publication Id : M1J2Y3