public class RealPointSampleListWritableRealPointCollection<L extends RealLocalizable> extends NNSRealPointCollection<L> implements WritableRealPointCollection<L>
WritableRealPointCollection
which checks if points are contained in
the collection by performing a NearestNeighborSearch
on the provided
RealPointSampleList
.
Points can be added to this collection, however they cannot yet be removed as
RealPointSampleList
does not currently support this.
interval, search
n
Constructor and Description |
---|
RealPointSampleListWritableRealPointCollection(Collection<L> points)
Creates a
RealPointCollection with the points in the
Collection . |
RealPointSampleListWritableRealPointCollection(RealPointSampleList<L> points)
Creates a
RealPointCollection with the points in the
RealPointSampleList . |
Modifier and Type | Method and Description |
---|---|
void |
addPoint(L point)
Adds a point to the collection.
|
equals, hashCode, points, realMax, realMax, realMax, realMin, realMin, realMin, size, test
numDimensions
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
removePoint
boundaryType, equals, equals, hashCode, maskType, points, size
and, isEmpty, minus, or, realMax, realMax, realMin, realMin, transform, xor
isAll, knownConstant
numDimensions
maxAsDoubleArray, maxAsRealPoint, minAsDoubleArray, minAsRealPoint, realMax, realMin
public RealPointSampleListWritableRealPointCollection(Collection<L> points)
RealPointCollection
with the points in the
Collection
.points
- Points which should be included in this point collection. This
Collection will be used to create a RealPointSampleList.public RealPointSampleListWritableRealPointCollection(RealPointSampleList<L> points)
RealPointCollection
with the points in the
RealPointSampleList
.points
- Contains the points which will be included in this collection.
Only the positions of the points will be used, the values at
those positions will be ignored. The first point determines
the dimensionality of the collection.public void addPoint(L point)
WritableRealPointCollection
addPoint
in interface WritableRealPointCollection<L extends RealLocalizable>
point
- Point to add to collectionCopyright © 2015–2022 ImgLib2. All rights reserved.