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

Method run

ij/src/main/java/ij/plugin/SubstackMaker.java:35–52  ·  view source on GitHub ↗
(String arg)

Source from the content-addressed store, hash-verified

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.

Callers

nothing calls this directly

Calls 14

getImageMethod · 0.95
isHyperStackMethod · 0.95
isCompositeMethod · 0.95
getStackMethod · 0.95
sizeMethod · 0.95
showDialogMethod · 0.95
makeSubstackMethod · 0.95
showMethod · 0.95
isVirtualMethod · 0.95
logMethod · 0.95
runMethod · 0.65
getNameMethod · 0.65

Tested by

no test coverage detected