(String arg)
| 14 | int nSlices, width, height; |
| 15 | |
| 16 | public void run(String arg) { |
| 17 | imp = IJ.getImage(); |
| 18 | nSlices = imp.getStackSize(); |
| 19 | width = imp.getWidth(); |
| 20 | height = imp.getHeight(); |
| 21 | |
| 22 | if (arg.equals("add")) |
| 23 | addSlice(); |
| 24 | else if (arg.equals("delete")) |
| 25 | deleteSlice(); |
| 26 | else if (arg.equals("toimages")) |
| 27 | convertStackToImages(imp); |
| 28 | } |
| 29 | |
| 30 | void addSlice() { |
| 31 | if (imp.isHyperStack() || imp.isComposite()) { |
nothing calls this directly
no test coverage detected