Skip to content

Instantly share code, notes, and snippets.

@hirokai
Last active August 29, 2015 14:13
Show Gist options
  • Save hirokai/41308d05eafa86c967df to your computer and use it in GitHub Desktop.
Save hirokai/41308d05eafa86c967df to your computer and use it in GitHub Desktop.
Auto contrast for slice processing for cropping cells
// Move to next slice, and reset scale, autocontrast, and make 250x250 rect.
run("Select None");
run("Next Slice [>]");
run("Set Scale...", "distance=0 known=0 pixel=1 unit=pixel");
resetMinAndMax();
run("Enhance Contrast", "saturated=0.3");
run("Specify...", "width=250 height=250 x=256 y=256");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment