public class DefaultWritablePointMask extends RealPoint implements WritablePointMask
WritablePointMask
specified by the given location.position
n
Constructor and Description |
---|
DefaultWritablePointMask(double[] pt)
Creates a
WritablePointMask with given array, such that only that
location is contained in the Mask . |
DefaultWritablePointMask(RealLocalizable pt)
Creates a
WritablePointMask with the given point, such that only
that point is contained in the Mask . |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj)
Determines whether this point describes the same region as another one.
|
int |
hashCode() |
boolean |
test(RealLocalizable l) |
bck, fwd, move, move, move, move, move, move, move, move, move, move, setPosition, setPosition, setPosition, setPosition, setPosition, setPosition, setPosition, setPosition, setPosition, setPosition, toString, wrap
getDoublePosition, getFloatPosition, localize, localize
numDimensions
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
boundaryType, equals, hashCode, maskType, realMax, realMin
and, isEmpty, minus, or, realMax, realMax, realMin, realMin, transform, xor
isAll, knownConstant
numDimensions
maxAsDoubleArray, maxAsRealPoint, minAsDoubleArray, minAsRealPoint
getDoublePosition, getFloatPosition, localize, localize, localize, positionAsDoubleArray, positionAsRealPoint
move, move, move, move, move, setPosition, setPosition, setPosition, setPosition, setPosition
bck, fwd, move, move, move, move, move, setPosition, setPosition, setPosition, setPosition, setPosition
public DefaultWritablePointMask(RealLocalizable pt)
WritablePointMask
with the given point, such that only
that point is contained in the Mask
. The dimensionality of the
space is determined by the number of dimensions of pt
.pt
- The point which the mask should contain.public DefaultWritablePointMask(double[] pt)
WritablePointMask
with given array, such that only that
location is contained in the Mask
.pt
- Array containing the location of the point in n-d space, where
n is the array length. A copy of this array is stored.public boolean test(RealLocalizable l)
test
in interface Predicate<RealLocalizable>
public boolean equals(Object obj)
PointMask
equals
in interface PointMask
equals
in interface MaskPredicate<RealLocalizable>
equals
in class RealPoint
obj
- The point to compare with this one.MaskPredicate.equals(Object)
,
PointMask.equals(PointMask, PointMask)
Copyright © 2015–2022 ImgLib2. All rights reserved.