()
| 1021 | } |
| 1022 | |
| 1023 | ImagePlus getImage() { |
| 1024 | ImagePlus imp = IJ.getImage(interp); |
| 1025 | if (imp.getWindow()==null && IJ.getInstance()!=null && !interp.isBatchMode() && WindowManager.getTempCurrentImage()==null) |
| 1026 | throw new RuntimeException(Macro.MACRO_CANCELED); |
| 1027 | defaultIP = null; |
| 1028 | defaultImp = imp; |
| 1029 | return imp; |
| 1030 | } |
| 1031 | |
| 1032 | void resetImage() { |
| 1033 | defaultImp = null; |
no test coverage detected