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

Method openImage

ij/src/main/java/ij/IJ.java:2094–2099  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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) {

Callers 15

revertStackMethod · 0.95
openMethod · 0.95
doDialogMethod · 0.95
runMethod · 0.95
getProcessorMethod · 0.95
runMethod · 0.95
processFolderMethod · 0.95
getFolderImageMethod · 0.95
processFolderMethod · 0.95
getFolderImageMethod · 0.95
openAsSeparateImagesMethod · 0.95
openMethod · 0.95

Calls 2

doNotUseBioFormatsMethod · 0.95
openImageMethod · 0.95

Tested by

no test coverage detected