use of net.imglib2.ops.pointset.PointSet in project imagej-ui-swing by imagej.
the class ThresholdFigure method getViewedPlane.
// -- helpers --
private PointSet getViewedPlane() {
long[] pt1 = new long[dataset.numDimensions()];
long[] pt2 = pt1.clone();
pt2[0] = dataset.dimension(0) - 1;
pt2[1] = dataset.dimension(1) - 1;
for (int i = 2; i < pt1.length; i++) {
AxisType axisType = dataset.axis(i).type();
pt1[i] = pt2[i] = display.getLongPosition(axisType);
}
return new HyperVolumePointSet(pt1, pt2);
}
Aggregations