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

Method save

ij/src/main/java/ij/plugin/StackWriter.java:52–60  ·  view source on GitHub ↗

Saves the specified image as a sequence of images.

(ImagePlus imp, String directoryPath, String options)

Source from the content-addressed store, hash-verified

50
51 /** Saves the specified image as a sequence of images. */
52 public static void save(ImagePlus imp, String directoryPath, String options) {
53 StackWriter sw = new StackWriter();
54 sw.imp = imp;
55 sw.format = Tools.getStringFromList(options, "format=", sw.format);
56 sw.name = Tools.getStringFromList(options, "name=");
57 sw.ndigits = (int)Tools.getNumberFromList(options, "digits=", sw.ndigits);
58 sw.useLabels = options.contains(" use");
59 sw.run(directoryPath);
60 }
61
62
63 @AstroImageJ(reason = "Create missing directories if they don't exist", modified = true)

Callers

nothing calls this directly

Calls 4

getStringFromListMethod · 0.95
getNumberFromListMethod · 0.95
runMethod · 0.95
containsMethod · 0.45

Tested by

no test coverage detected