(String arg, ImagePlus imp)
| 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(); |
nothing calls this directly
no test coverage detected