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

Method addRoi

ij/src/main/java/ij/macro/Functions.java:7362–7373  ·  view source on GitHub ↗
(ImagePlus imp, Roi roi)

Source from the content-addressed store, hash-verified

7360 }
7361
7362 void addRoi(ImagePlus imp, Roi roi){
7363 Overlay overlay = imp.getOverlay();
7364 if (overlay==null) {
7365 if (offscreenOverlay==null)
7366 offscreenOverlay = new Overlay();
7367 overlay = offscreenOverlay;
7368 }
7369 if (globalColor!=null)
7370 roi.setStrokeColor(globalColor);
7371 roi.setStrokeWidth(getProcessor().getLineWidth());
7372 overlay.add(roi);
7373 }
7374
7375 double showOverlay(ImagePlus imp) {
7376 interp.getParens();

Callers 3

overlayDrawStringMethod · 0.95
addDrawingToOverlayMethod · 0.95

Calls 6

getProcessorMethod · 0.95
addMethod · 0.95
getLineWidthMethod · 0.65
getOverlayMethod · 0.45
setStrokeColorMethod · 0.45
setStrokeWidthMethod · 0.45

Tested by

no test coverage detected