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

Method selectImage

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

Source from the content-addressed store, hash-verified

3343 }
3344
3345 void selectImage() {
3346 interp.getLeftParen();
3347 if (isStringArg()) {
3348 String title = getString();
3349 if (!isOpen(title))
3350 interp.error("\""+title+"\" not found");
3351 selectImage(title);
3352 interp.getRightParen();
3353 } else {
3354 int id = (int)interp.getExpression();
3355 if (WindowManager.getImage(id)==null)
3356 interp.error("Image "+id+" not found");
3357 IJ.selectWindow(id);
3358 interp.getRightParen();
3359 }
3360 resetImage();
3361 }
3362
3363 void selectImage(String title) {
3364 if (Interpreter.isBatchMode()) {

Callers 1

doFunctionMethod · 0.95

Calls 15

isStringArgMethod · 0.95
getStringMethod · 0.95
isOpenMethod · 0.95
getImageMethod · 0.95
selectWindowMethod · 0.95
resetImageMethod · 0.95
isBatchModeMethod · 0.95
getTitleMethod · 0.95
getCurrentImageMethod · 0.95
saveRoiMethod · 0.95
setTempCurrentImageMethod · 0.95
activateImageMethod · 0.95

Tested by

no test coverage detected