public class NNSRealPointCollection<L extends RealLocalizable> extends AbstractEuclideanSpace implements RealPointCollection<L>
RealPointCollection which checks if points are in the collection by
performing a NearestNeighborSearch on the provided
IterableRealInterval.| Modifier and Type | Field and Description |
|---|---|
protected IterableRealInterval<L> |
interval |
protected NearestNeighborSearch<L> |
search |
n| Constructor and Description |
|---|
NNSRealPointCollection(IterableRealInterval<L> interval)
Creates a
RealPointCollection. |
NNSRealPointCollection(IterableRealInterval<L> interval,
NearestNeighborSearch<L> search)
Creates a
RealPointCollection. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
int |
hashCode() |
Iterable<L> |
points()
Returns the points in the collection.
|
void |
realMax(double[] max) |
double |
realMax(int d) |
void |
realMax(RealPositionable max) |
void |
realMin(double[] min) |
double |
realMin(int d) |
void |
realMin(RealPositionable min) |
boolean |
test(RealLocalizable l) |
numDimensionsclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitboundaryTypeand, isEmpty, minus, or, transform, xorisAll, knownConstantnumDimensionsprotected IterableRealInterval<L extends RealLocalizable> interval
protected NearestNeighborSearch<L extends RealLocalizable> search
public NNSRealPointCollection(IterableRealInterval<L> interval)
RealPointCollection.interval - Contains the points which will be included in this collection.
This will be used to create a
NearestNeighborSearchOnIterableRealInterval.The first
point determines the dimensionality of the collection.public NNSRealPointCollection(IterableRealInterval<L> interval, NearestNeighborSearch<L> search)
RealPointCollection.interval - Contains the points which will be included in this collection.
This will be used to create a
NearestNeighborSearchOnIterableRealInterval. The first
point determines the dimensionality of the collection.search - Will be used to check if a point is contained by the
collection.public boolean test(RealLocalizable l)
test in interface Predicate<RealLocalizable>public double realMin(int d)
realMin in interface RealIntervalpublic void realMin(double[] min)
realMin in interface RealIntervalrealMin in interface RealMaskRealIntervalpublic void realMin(RealPositionable min)
realMin in interface RealIntervalrealMin in interface RealMaskRealIntervalpublic double realMax(int d)
realMax in interface RealIntervalpublic void realMax(double[] max)
realMax in interface RealIntervalrealMax in interface RealMaskRealIntervalpublic void realMax(RealPositionable max)
realMax in interface RealIntervalrealMax in interface RealMaskRealIntervalpublic Iterable<L> points()
RealPointCollectionpoints in interface RealPointCollection<L extends RealLocalizable>Copyright © 2009–2018 ImgLib2. All rights reserved.