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

Method invert

ij/src/main/java/ij/plugin/Selection.java:702–711  ·  view source on GitHub ↗
(ImagePlus imp)

Source from the content-addressed store, hash-verified

700 }
701
702 void invert(ImagePlus imp) {
703 Roi roi = imp.getRoi();
704 if (roi == null)
705 {run("all"); return;}
706 if (!roi.isArea())
707 {IJ.error("Inverse", "Area selection required"); return;}
708 Roi inverse = roi.getInverse(imp);
709 Undo.setup(Undo.ROI, imp);
710 imp.setRoi(inverse);
711 }
712
713 private void lineToArea(ImagePlus imp) {
714 Roi roi = imp.getRoi();

Callers 11

runMethod · 0.95
enlargeMethod · 0.45
enlarge255Method · 0.45
makeSurfacePlotMethod · 0.45
outlineMethod · 0.45
runMethod · 0.45
runMethod · 0.45
makeMaskMethod · 0.45
eraseOutsideRoiMethod · 0.45
runMethod · 0.45
runMethod · 0.45

Calls 7

runMethod · 0.95
isAreaMethod · 0.95
errorMethod · 0.95
getInverseMethod · 0.95
setupMethod · 0.95
getRoiMethod · 0.45
setRoiMethod · 0.45

Tested by

no test coverage detected