Skip to content

Instantly share code, notes, and snippets.

@miura
Created November 15, 2012 11:37
Show Gist options
  • Select an option

  • Save miura/4078203 to your computer and use it in GitHub Desktop.

Select an option

Save miura/4078203 to your computer and use it in GitHub Desktop.
creates a stack with frame numbers printed
macro "create"{
ww = 100;
hh = 30;
slices = 11;
newImage("teststack.tif", "8-bit Black", ww, hh, slices);
for (i = 0; i < slices; i++){
setSlice(i+1);
drawString(i+1, ww/2, hh/2 + 10);
}
}
macro "montage"{
run("Make Montage...", "columns=1 rows="+nSlices+" scale=1 first=1 last="+nSlices+" increment=1 border=1 font=12");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment