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

Method enlarge

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

Source from the content-addressed store, hash-verified

125 }
126
127 private void enlarge(ImagePlus imp) {
128 if (!imp.okToDeleteRoi()) return;
129 Roi roi = imp.getRoi();
130 if (roi!=null) {
131 Undo.setup(Undo.ROI, imp);
132 roi = (Roi)roi.clone();
133 (new RoiEnlarger()).run("");
134 } else
135 noRoi("Enlarge");
136 }
137
138 /*
139 if selection is closed shape, create a circle with the same area and centroid, otherwise use<br>

Callers 1

runMethod · 0.95

Calls 6

setupMethod · 0.95
cloneMethod · 0.95
noRoiMethod · 0.95
okToDeleteRoiMethod · 0.80
runMethod · 0.65
getRoiMethod · 0.45

Tested by

no test coverage detected