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

Method autoOutline

ij/src/main/java/ij/gui/Wand.java:77–81  ·  view source on GitHub ↗

Traces an object defined by lower and upper threshold values. 'mode' can be FOUR_CONNECTED or EIGHT_CONNECTED. ('LEGACY_MODE' is also supported and may result in selection of interior holes instead of the thresholded area if one clicks left of an interior hole). The start coordinates must be inside

(int startX, int startY, double lower, double upper, int mode)

Source from the content-addressed store, hash-verified

75 * When successful, npoints>0 and the boundary points can be accessed
76 * in the public xpoints and ypoints fields. */
77 public void autoOutline(int startX, int startY, double lower, double upper, int mode) {
78 lowerThreshold = (float)lower;
79 upperThreshold = (float)upper;
80 autoOutline(startX, startY, 0.0, mode|THRESHOLDED_MODE);
81 }
82
83 /** Traces an object defined by lower and upper threshold values or an
84 * interior hole; whatever is found first ('legacy mode').

Callers 4

doWandMethod · 0.95
getPolygonMethod · 0.95
deleteParticleMethod · 0.80
analyzeParticleMethod · 0.80

Calls 6

getPixelMethod · 0.95
setStartMethod · 0.95
insideMethod · 0.95
isLineMethod · 0.95
traceEdgeMethod · 0.95
containsMethod · 0.45

Tested by

no test coverage detected