Skip to content

Instantly share code, notes, and snippets.

@hirokai
Created November 29, 2014 06:35
Show Gist options
  • Save hirokai/96d8ea446b575607274d to your computer and use it in GitHub Desktop.
Save hirokai/96d8ea446b575607274d to your computer and use it in GitHub Desktop.
Fiji macro: detect bright circles.
run("Enhance Contrast", "saturated=0.35");
run("Gaussian Blur...", "sigma=5");
run("8-bit");
run("Auto Local Threshold", "method=Mean radius=50 parameter_1=0 parameter_2=0 white");
run("Invert");
run("Fill Holes");
run("Watershed");
run("Set Measurements...", "area mean standard modal min center bounding redirect=None decimal=2");
run("Analyze Particles...", "size=150-300 show=Ellipses display clear include");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment