@Deprecated public class LocalNeighborhoodCursor<T> extends AbstractCursor<T>
Modifier and Type | Field and Description |
---|---|
protected RandomAccess<T> |
parent
Deprecated.
|
n
Constructor and Description |
---|
LocalNeighborhoodCursor(RandomAccess<T> parent,
long span)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
LocalNeighborhoodCursor<T> |
copy()
Deprecated.
|
LocalNeighborhoodCursor<T> |
copyCursor()
Deprecated.
|
void |
fwd()
Deprecated.
|
T |
get()
Deprecated.
Access the actual T instance providing access to a pixel,
sub-pixel or integral region value the
Sampler points at. |
long |
getLongPosition(int d)
Deprecated.
Return the current position in a given dimension.
|
boolean |
hasNext()
Deprecated.
|
void |
localize(long[] pos)
Deprecated.
Write the current position into the passed array.
|
void |
reset()
Deprecated.
|
void |
reset(long[] currentParentPosition)
Deprecated.
|
getDoublePosition, getFloatPosition, getIntPosition, jumpFwd, localize, localize, localize, next, remove, toString
numDimensions
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
forEachRemaining
localize, positionAsLongArray, positionAsPoint
localize, positionAsDoubleArray, positionAsRealPoint
numDimensions
protected final RandomAccess<T> parent
public LocalNeighborhoodCursor(RandomAccess<T> parent, long span)
parent
- A copy of it will be made internally, to be updated by reset(long[])
.span
- Iterates from -span to +span in each dimension.public T get()
Sampler
Sampler
points at.public void fwd()
public void reset()
public void reset(long[] currentParentPosition)
public boolean hasNext()
public void localize(long[] pos)
Localizable
pos
- receives current positionpublic long getLongPosition(int d)
Localizable
d
- dimensionpublic LocalNeighborhoodCursor<T> copy()
copy
in interface Sampler<T>
copy
in class AbstractCursor<T>
Sampler
in the same state accessing the same
values.
It does NOT copy T, just the state of the Sampler
.
Otherwise use T.copy() if available.
Sampler.copy().get() == Sampler.get(), i.e. both hold the same
value, not necessarily the same instance (this is the case for an
ArrayCursor
for example)public LocalNeighborhoodCursor<T> copyCursor()
copyCursor
in interface Cursor<T>
copyCursor
in interface RealCursor<T>
copyCursor
in class AbstractCursor<T>
Copyright © 2015–2022 ImgLib2. All rights reserved.