Created
March 23, 2020 15:16
-
-
Save NicoKiaru/ca6a0ac62e0da586ece8eba392b4c825 to your computer and use it in GitHub Desktop.
List Ops Available in FIJI
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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