Skip to content

Instantly share code, notes, and snippets.

@NicoKiaru
Created March 23, 2020 15:16
Show Gist options
  • Save NicoKiaru/ca6a0ac62e0da586ece8eba392b4c825 to your computer and use it in GitHub Desktop.
Save NicoKiaru/ca6a0ac62e0da586ece8eba392b4c825 to your computer and use it in GitHub Desktop.
List Ops Available in FIJI
import net.imagej.ops.OpUtils
opsByNS = [:]
#@ImageJ ij
ij.op().ops().each{op ->
ns = OpUtils.getNamespace(op)
name = OpUtils.stripNamespace(op)
if (!opsByNS.containsKey(ns)) {
opsByNS.put(ns, name)
} else {
opsByNS.put(ns, opsByNS.get(ns) + ', ' + name)
}
}
opsByNS.put('<global>', opsByNS.remove(null))
String str = ""
opsByNS.each{ k,v ->
str+=k+":"+v+"\n\n"
}
println(str)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment