Opens the specified file as a tiff, bmp, dicom, fits, pgm, gif, jpeg or text image and returns an ImagePlus object if successful. Calls HandleExtraFileTypes plugin if the file type is not recognised. Displays a file open dialog if 'path' is null or an empty string. Note that 'path' can also be a URL
(String path)
| 2092 | * @see Opener#openUsingBioFormats(String) |
| 2093 | */ |
| 2094 | public static ImagePlus openImage(String path) { |
| 2095 | macroRunning = true; |
| 2096 | ImagePlus imp = (new Opener()).openImage(path); |
| 2097 | macroRunning = false; |
| 2098 | return imp; |
| 2099 | } |
| 2100 | |
| 2101 | /** Opens the nth image of the specified tiff stack. */ |
| 2102 | public static ImagePlus openImage(String path, int n) { |
no test coverage detected