public void setCoordinates(PointRoi points1, PointRoi points2) { Rectangle r1 = points1.getBounds(); Rectangle r2 = points2.getBounds(); setCoordinates(points1.getXCoordinates(), points1.getYCoordinates(), r1.x, r1.y, points2.getXCoordinates(), points2.getYCoordinates(), r2.x, r2.y, points1.getNCoordinates()); }
int[] ySource = prSource.getYCoordinates(); int[] yTarget = prTarget.getYCoordinates();
int[] ySource = prSource.getYCoordinates(); int[] yTarget = prTarget.getYCoordinates();
final PointRoi roi = ( PointRoi )imp.getRoi(); final int[] x = roi.getXCoordinates(); final int[] y = roi.getYCoordinates();
final PointRoi roi = ( PointRoi )imp.getRoi(); final int[] x = roi.getXCoordinates(); final int[] y = roi.getYCoordinates();
public void initDelaunay() { delaunay = null; Roi roi = imp.getRoi(); if (roi == null || !(roi instanceof PointRoi)) return; PointRoi r = (PointRoi)roi; Rectangle rect = r.getBounds(); int n = r.getNCoordinates(); int[] x = r.getXCoordinates(); int[] y = r.getYCoordinates(); Simplex initial = new Simplex(new Pnt[] { new Pnt(-inf, -inf), new Pnt(-inf, 5 * inf), new Pnt(5 * inf, -inf)}); delaunay = new DelaunayTriangulation(initial); for (int i = 0; i < n; i++) delaunay.delaunayPlace(new Pnt(x[i] + rect.x, y[i] + rect.y)); if (showMeanDistance && mode == DELAUNAY) showMeanAndVariance(); }