(String arg)
| 8 | public class StackReverser implements PlugIn { |
| 9 | |
| 10 | public void run(String arg) { |
| 11 | ImagePlus imp = IJ.getImage(); |
| 12 | if (imp.getStackSize()==1) { |
| 13 | IJ.error("Flip Z", "This command requires a stack"); |
| 14 | return; |
| 15 | } |
| 16 | if (imp.isHyperStack()) { |
| 17 | IJ.error("Flip Z", "This command does not currently work with hyperstacks."); |
| 18 | return; |
| 19 | } |
| 20 | flipStack(imp); |
| 21 | } |
| 22 | |
| 23 | public void flipStack(ImagePlus imp) { |
| 24 | ImageStack stack = imp.getStack(); |
nothing calls this directly
no test coverage detected