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

Method getImageArg

ij/src/main/java/ij/macro/Functions.java:4436–4447  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4434 }
4435
4436 ImagePlus getImageArg() {
4437 ImagePlus img = null;
4438 if (isStringArg()) {
4439 String title = getString();
4440 img = WindowManager.getImage(title);
4441 } else {
4442 int id = (int)interp.getExpression();
4443 img = WindowManager.getImage(id);
4444 }
4445 if (img==null) interp.error("Image not found");
4446 return img;
4447 }
4448
4449 void imageCalculator() {
4450 String operator = getFirstString();

Callers 1

imageCalculatorMethod · 0.95

Calls 5

isStringArgMethod · 0.95
getStringMethod · 0.95
getImageMethod · 0.95
getExpressionMethod · 0.80
errorMethod · 0.45

Tested by

no test coverage detected