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

Method addPoint2

ij/src/main/java/ij/gui/PointRoi.java:374–384  ·  view source on GitHub ↗
(ImagePlus imp, double ox, double oy)

Source from the content-addressed store, hash-verified

372 }
373
374 private void addPoint2(ImagePlus imp, double ox, double oy) {
375 double xbase = getXBase();
376 double ybase = getYBase();
377 xpf[nPoints] = (float)(ox-xbase);
378 ypf[nPoints] = (float)(oy-ybase);
379 xp2[nPoints] = (int)ox;
380 yp2[nPoints] = (int)oy;
381 nPoints++;
382 incrementCounter(imp);
383 lastPointTime = System.currentTimeMillis();
384 }
385
386 /** Adds a point to this PointRoi. */
387 public PointRoi addPoint(double x, double y) {

Callers 1

addPointMethod · 0.95

Calls 3

incrementCounterMethod · 0.95
getXBaseMethod · 0.80
getYBaseMethod · 0.80

Tested by

no test coverage detected