MCPcopy Create free account
hub / github.com/AstroImageJ/astroimagej / run

Method run

ij/src/main/java/ij/plugin/StackReverser.java:10–21  ·  view source on GitHub ↗
(String arg)

Source from the content-addressed store, hash-verified

8public 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();

Callers

nothing calls this directly

Calls 5

getImageMethod · 0.95
getStackSizeMethod · 0.95
errorMethod · 0.95
isHyperStackMethod · 0.95
flipStackMethod · 0.95

Tested by

no test coverage detected