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

Method inside

ij/src/main/java/ij/gui/Wand.java:286–291  ·  view source on GitHub ↗
(int x, int y)

Source from the content-addressed store, hash-verified

284
285 // check pixel at (x,y), whether it is inside traced area
286 private boolean inside(int x, int y) {
287 if (x<0 || x>=width || y<0 || y>=height)
288 return false;
289 float value = getPixel(x, y);
290 return value>=lowerThreshold && value<=upperThreshold;
291 }
292
293 // check pixel in a given direction from vertex (x,y)
294 private boolean inside(int x, int y, int direction) {

Callers 3

autoOutlineMethod · 0.95
traceEdgeMethod · 0.95
isLineMethod · 0.95

Calls 1

getPixelMethod · 0.95

Tested by

no test coverage detected