Skip to content

Instantly share code, notes, and snippets.

@miura
Created August 6, 2013 11:21
Show Gist options
  • Save miura/6163675 to your computer and use it in GitHub Desktop.
Save miura/6163675 to your computer and use it in GitHub Desktop.
from fiji.threshold import Auto_Threshold
from pta import PTA
imp = IJ.getImage()
iphist = imp.getProcessor().getHistogram()
print Auto_Threshold.Intermodes(iphist)
PTA.setNoGUI(False)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment