Saves the specified image as a sequence of images.
(ImagePlus imp, String directoryPath, String options)
| 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) |
nothing calls this directly
no test coverage detected