(String arg)
| 33 | private boolean methodCall; |
| 34 | |
| 35 | public void run(String arg) { |
| 36 | ImagePlus imp = IJ.getImage(); |
| 37 | if (imp.isHyperStack() || imp.isComposite()) { |
| 38 | (new SubHyperstackMaker()).run(""); |
| 39 | return; |
| 40 | } |
| 41 | ImageStack stack = imp.getStack(); |
| 42 | int size1 = stack.size(); |
| 43 | String userInput = showDialog(); |
| 44 | if (userInput==null) |
| 45 | return; |
| 46 | ImagePlus imp2 = makeSubstack(imp, userInput); |
| 47 | if (imp2!=null && !noCreate) |
| 48 | imp2.show(); |
| 49 | // stacks opened with FFMPEG and BioFormats plugins do not support slice delete |
| 50 | if (delete && stack.isVirtual() && stack.size()==size1) |
| 51 | IJ.log("This virtual stack does not support delete: "+stack.getClass().getName()); |
| 52 | } |
| 53 | |
| 54 | /** |
| 55 | * Extracts selected slices from a stack to make a new substack. |
nothing calls this directly
no test coverage detected