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

Method getImage

ij/src/main/java/ij/IJ.java:1891–1901  ·  view source on GitHub ↗

Returns a reference to the active image, or displays an error message and aborts the plugin or macro if no images are open.

()

Source from the content-addressed store, hash-verified

1889 /** Returns a reference to the active image, or displays an error
1890 message and aborts the plugin or macro if no images are open. */
1891 public static ImagePlus getImage() {
1892 ImagePlus img = WindowManager.getCurrentImage();
1893 if (img==null) {
1894 IJ.noImage();
1895 if (ij==null)
1896 System.exit(0);
1897 else
1898 abort();
1899 }
1900 return img;
1901 }
1902
1903 /**The macro interpreter uses this method to call getImage().*/
1904 public static ImagePlus getImage(Interpreter interpreter) {

Callers 15

makeRectangleMethod · 0.95
makeOvalMethod · 0.95
makeLineMethod · 0.95
makePointMethod · 0.95
setMinAndMaxMethod · 0.95
resetMinAndMaxMethod · 0.95
setThresholdMethod · 0.95
resetThresholdMethod · 0.95
doWandMethod · 0.95
getProcessorMethod · 0.95
setSliceMethod · 0.95
saveAsTiffMethod · 0.95

Calls 4

getCurrentImageMethod · 0.95
noImageMethod · 0.95
abortMethod · 0.95
exitMethod · 0.45

Tested by

no test coverage detected