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

Method run

ij/src/main/java/ij/plugin/StackEditor.java:16–28  ·  view source on GitHub ↗
(String arg)

Source from the content-addressed store, hash-verified

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()) {

Callers

nothing calls this directly

Calls 8

getImageMethod · 0.95
addSliceMethod · 0.95
deleteSliceMethod · 0.95
convertStackToImagesMethod · 0.95
getStackSizeMethod · 0.45
getWidthMethod · 0.45
getHeightMethod · 0.45
equalsMethod · 0.45

Tested by

no test coverage detected