MCPcopy Create free account
hub / github.com/AstroImageJ/astroimagej / setup

Method setup

ij/src/main/java/ij/plugin/filter/Analyzer.java:95–112  ·  view source on GitHub ↗
(String arg, ImagePlus imp)

Source from the content-addressed store, hash-verified

93 }
94
95 public int setup(String arg, ImagePlus imp) {
96 this.arg = arg;
97 this.imp = imp;
98 IJ.register(Analyzer.class);
99 if (arg.equals("set")) {
100 doSetDialog();
101 return DONE;
102 } else if (arg.equals("sum")) {
103 summarize();
104 return DONE;
105 } else if (arg.equals("clear")) {
106 if (IJ.macroRunning())
107 unsavedMeasurements = false;
108 resetCounter();
109 return DONE;
110 } else
111 return DOES_ALL+NO_CHANGES;
112 }
113
114 public void run(ImageProcessor ip) {
115 measure();

Callers

nothing calls this directly

Calls 6

registerMethod · 0.95
doSetDialogMethod · 0.95
summarizeMethod · 0.95
macroRunningMethod · 0.95
resetCounterMethod · 0.95
equalsMethod · 0.45

Tested by

no test coverage detected