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

Method makeMask

ij/src/main/java/ij/plugin/filter/Filler.java:226–236  ·  view source on GitHub ↗
(ImageProcessor ip, Rectangle r)

Source from the content-addressed store, hash-verified

224 }
225
226 public void makeMask(ImageProcessor ip, Rectangle r) {
227 mask = ip.getMask();
228 if (mask==null) {
229 mask = new ByteProcessor(r.width, r.height);
230 mask.invert();
231 } else {
232 // duplicate mask (needed because getMask caches masks)
233 mask = mask.duplicate();
234 }
235 mask.invert();
236 }
237
238}

Callers

nothing calls this directly

Calls 3

getMaskMethod · 0.45
invertMethod · 0.45
duplicateMethod · 0.45

Tested by

no test coverage detected