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

Method open

ij/src/main/java/ij/plugin/AVI_Reader.java:381–391  ·  view source on GitHub ↗

Opens an AVI file, where 'options' can contain 'virtual' (open as virtual stack), 'convert' (convert color images to grayscale) or 'flip' (flip vertically). The ImagePlus is not displayed.

(String path, String options)

Source from the content-addressed store, hash-verified

379 * The ImagePlus is not displayed.
380 */
381 public static ImagePlus open(String path, String options) {
382 AVI_Reader reader = new AVI_Reader();
383 boolean virtual = options.contains("virtual");
384 boolean convertToGray = options.contains("convert");
385 boolean flipVertical = options.contains("flip");
386 ImageStack stack = reader.makeStack (path, 1, 0, virtual, convertToGray, flipVertical);
387 if (stack!=null)
388 return new ImagePlus((new File(path)).getName(), stack);
389 else
390 return null;
391 }
392
393 /** Opens an AVI file as a stack in memory or a virtual stack. The ImagePlus is not displayed. */
394 public static ImagePlus open(String path, boolean virtual) {

Callers 1

openVirtualMethod · 0.95

Calls 3

makeStackMethod · 0.95
getNameMethod · 0.65
containsMethod · 0.45

Tested by

no test coverage detected