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)
| 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) { |
no test coverage detected