Search in sources :

Example 21 with PointSet

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);
}
Also used : AxisType(net.imagej.axis.AxisType) HyperVolumePointSet(net.imglib2.ops.pointset.HyperVolumePointSet)

Aggregations

HyperVolumePointSet (net.imglib2.ops.pointset.HyperVolumePointSet)18 PointSet (net.imglib2.ops.pointset.PointSet)17 DoubleType (net.imglib2.type.numeric.real.DoubleType)10 Dataset (net.imagej.Dataset)9 RoiPointSet (net.imglib2.ops.pointset.RoiPointSet)9 RealImageFunction (net.imglib2.ops.function.real.RealImageFunction)5 AxisType (net.imagej.axis.AxisType)4 RandomAccessibleInterval (net.imglib2.RandomAccessibleInterval)4 PointSetIterator (net.imglib2.ops.pointset.PointSetIterator)4 ArrayList (java.util.ArrayList)3 ImgPlus (net.imagej.ImgPlus)2 BasicStatsFunction (net.imagej.measure.BasicStatsFunction)2 Overlay (net.imagej.overlay.Overlay)2 RandomAccess (net.imglib2.RandomAccess)2 RealAdaptiveMedianFunction (net.imglib2.ops.function.real.RealAdaptiveMedianFunction)2 RealArithmeticMeanFunction (net.imglib2.ops.function.real.RealArithmeticMeanFunction)2 RealMaxFunction (net.imglib2.ops.function.real.RealMaxFunction)2 OutOfBoundsMirrorFactory (net.imglib2.outofbounds.OutOfBoundsMirrorFactory)2 UnsignedByteType (net.imglib2.type.numeric.integer.UnsignedByteType)2 DefaultDataset (net.imagej.DefaultDataset)1