Hi Zach,
On Oct 21, 2010, at 9:38 AM, Zach Freyberg wrote:
> Hi,
> Thanks for your advice. Forgive me for my inexperience but what
> steps would I require to edit the macro command drawText()in ImageJ?
> Once I can do so, for my purposes every 5th frame in my stack would
> require a different text label. Therefore, in implementing the code
> you generously provided, would I copy and paste it in for every text
> label with the only other change being modifying the number to i+5, i
> +10 etc. for each label?
>
> run("Bat Cochlea Volume (19K)");
> for (i = 1; i < nSlices; i+=5){
> setSlice(i);
> drawString("S="+i, 50,50);
I am a little fuzzy here. Are you saying you want text output only on
every 5th frame and the text will be different each time? You may
need to define the text ahead of time...
myText = newArray("Put", "text", "here", "Zach");
myTextCount = 0;
for (i = 0; i <(myText.length*5); i++){
if ((i % 5) == 0) {
print(myText[myTextCount] +" " + i);
myTextCount = myTextCount + 1;
}
}
I hope I am not leading you astray,
Ben
P.S. Please reply to the list instead of me. Thanks!