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
| getDimensions(width, height, channels, slices, frames);
Dialog.create("Color");
for (i=1;i<=channels;i++){
listDch=newArray(i);
Dialog.addChoice("channel"+ i +":", newArray("Texas Red/FM4-64", "GFP", "DAPI", "YFP","PHASE"));
}
Dialog.show();
for (i=1;i<=channels;i++){
listDch[i-1]=Dialog.getChoice();
}
for (j=1;j<=channels;j++){
Stack.setChannel(j);
if (listDch[j-1]=="Texas Red/FM4-64")
run("Red");
else if (listDch[j-1]== "GFP")
run("Green");
else if (listDch[j-1]== "DAPI")
run("Cyan");
else if (listDch[j-1]== "YFP")
run("Yellow");
else if (listDch[j-1]=="PHASE")
run("Grays");
} |
Partager