1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
|
//Select folder containing stacks to process.
input = getDirectory("Choose substack Directory");
output = input+ File.separator()
list = getFileList(input);
for (i=0; i<list.length; i++)
{
if " nom de fichier comporte: T1 T2 T3 Faire"
{
open(input+list[i]);
Stack.setFrame(4);
saveAs("tiff", output+File.separator()+"T1 T2 ou T3");
close();
}
if " nom de fichier comporte: T8 Faire"
{
open(input+list[i]);
Stack.setFrame(1);
saveAs("tiff", output+File.separator()+"T8");
close();
}
}
Ouvrir images T8
run("Add Image...", "image=[T1] x=0 y=0 opacity=50");
saveAs("tiff", output+File.separator()+"T1-T8");
close();
run("Add Image...", "image=[T2] x=0 y=0 opacity=50");
saveAs("tiff", output+File.separator()+"T1-T8");
run("Add Image...", "image=[T3] x=0 y=0 opacity=50");
saveAs("tiff", output+File.separator()+"T1-T8"); |
Partager