public class GeomMasks extends Object
MaskPredicate
s.public static WritableBox closedBox(double[] min, double[] max)
public static WritableBox openBox(double[] min, double[] max)
public static WritableEllipsoid closedEllipsoid(double[] center, double[] semiAxisLengths)
public static WritableEllipsoid openEllipsoid(double[] center, double[] semiAxisLengths)
public static WritableLine line(RealLocalizable pointOne, RealLocalizable pointTwo)
WritableLine
from two RealLocalizable
points.public static WritableLine line(double[] pointOne, double[] pointTwo, boolean copy)
WritableLine
from two double[]
points.public static WritablePointMask pointMask(double[] point)
WritablePointMask
from double[]
coordinates.public static WritablePointMask pointMask(RealLocalizable point)
WritablePointMask
from a RealLocalizable
point.public static WritablePolygon2D polygon2D(List<? extends RealLocalizable> vertices)
public static WritablePolygon2D polygon2D(double[] x, double[] y)
public static WritablePolygon2D closedPolygon2D(List<? extends RealLocalizable> vertices)
public static WritablePolygon2D closedPolygon2D(double[] x, double[] y)
public static WritablePolygon2D openPolygon2D(List<? extends RealLocalizable> vertices)
public static WritablePolygon2D openPolygon2D(double[] x, double[] y)
public static WritablePolyline polyline(List<? extends RealLocalizable> vertices)
WritablePolyline
from a list of vertices.public static <L extends RealLocalizable> WritableRealPointCollection<L> realPointCollection(HashMap<gnu.trove.list.array.TDoubleArrayList,L> points)
WritableRealPointCollection
from a map of points.public static <L extends RealLocalizable> WritableRealPointCollection<L> realPointCollection(Collection<L> points)
WritableRealPointCollection
from a collection of points.public static <L extends RealLocalizable> RealPointCollection<L> kDTreeRealPointCollection(KDTree<L> tree)
RealPointCollection
from a KDTree
.public static <L extends RealLocalizable> KDTreeRealPointCollection<L> kDTreeRealPointCollection(Collection<L> points)
KDTree
-based RealPointCollection
from a
collection of points.public static <L extends RealLocalizable> WritableRealPointCollection<L> realPointSampleListRealPointCollection(RealPointSampleList<L> points)
WritableRealPointCollection
from a
RealPointSampleList
.public static <L extends RealLocalizable> RealPointSampleListWritableRealPointCollection<L> realPointSampleListRealPointCollection(Collection<L> points)
RealPointSampleList
-based
WritableRealPointCollection
from a collection of points.public static WritableSphere closedSphere(double[] center, double radius)
public static WritableSphere openSphere(double[] center, double radius)
public static WritableSuperEllipsoid closedSuperEllipsoid(double[] center, double[] semiAxisLengths, double exponent)
public static WritableSuperEllipsoid openSuperEllipsoid(double[] center, double[] semiAxisLengths, double exponent)
Copyright © 2015–2022 ImgLib2. All rights reserved.