T - @Deprecated public class LocalNeighborhoodCursor<T> extends Object implements Cursor<T>
| Modifier and Type | Field and Description |
|---|---|
protected RandomAccess<T> |
randomAccess
Deprecated.
|
| Constructor and Description |
|---|
LocalNeighborhoodCursor(LocalNeighborhoodCursor<T> cursor)
Deprecated.
|
LocalNeighborhoodCursor(RandomAccessible<T> source,
Localizable center)
Deprecated.
Create new
LocalNeighborhoodCursor on a RandomAccessible
at a certain location. |
LocalNeighborhoodCursor(RandomAccessible<T> source,
long[] center)
Deprecated.
Create new
LocalNeighborhoodCursor on a RandomAccessible
at a certain location. |
| Modifier and Type | Method and Description |
|---|---|
LocalNeighborhoodCursor<T> |
copy()
Deprecated.
|
LocalNeighborhoodCursor<T> |
copyCursor()
Deprecated.
|
void |
fwd()
Deprecated.
Move forward.
|
T |
get()
Deprecated.
Access the actual T instance providing access to a pixel,
sub-pixel or integral region value the
Sampler points at. |
double |
getDoublePosition(int d)
Deprecated.
Return the current position in a given dimension.
|
float |
getFloatPosition(int d)
Deprecated.
Return the current position in a given dimension.
|
int |
getIntPosition(int d)
Deprecated.
Return the current position in a given dimension.
|
long |
getLongPosition(int d)
Deprecated.
Return the current position in a given dimension.
|
boolean |
hasNext()
Deprecated.
Returns true if another step forward is possible.
|
void |
jumpFwd(long steps)
Deprecated.
Move steps × forward.
|
void |
localize(double[] position)
Deprecated.
Write the current position into the passed array.
|
void |
localize(float[] position)
Deprecated.
Write the current position into the passed array.
|
void |
localize(int[] position)
Deprecated.
Write the current position into the passed array.
|
void |
localize(long[] position)
Deprecated.
Write the current position into the passed array.
|
T |
next()
Deprecated.
|
int |
numDimensions()
Deprecated.
Gets the space's number of dimensions.
|
void |
remove()
Deprecated.
|
void |
reset()
Deprecated.
Reset the
Iterator, that is put it to where it would be if newly
created. |
void |
updateCenter(Localizable center)
Deprecated.
|
void |
updateCenter(long[] center)
Deprecated.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemaininglocalize, positionAsLongArray, positionAsPointlocalize, positionAsDoubleArray, positionAsRealPointprotected final RandomAccess<T> randomAccess
public LocalNeighborhoodCursor(RandomAccessible<T> source, long[] center)
LocalNeighborhoodCursor on a RandomAccessible
at a certain location.
Note: the location can be updated without need to re-instantiate all the
times.source - - the data as RandomAccessiblecenter - - the center location of the 3x3x3...x3 environment that will
be skippedpublic LocalNeighborhoodCursor(RandomAccessible<T> source, Localizable center)
LocalNeighborhoodCursor on a RandomAccessible
at a certain location.
Note: the location can be updated without need to re-instantiate all the
times.source - - the data as RandomAccessiblecenter - - the center location of the 3x3x3...x3 environment that will
be skippedpublic LocalNeighborhoodCursor(LocalNeighborhoodCursor<T> cursor)
public void updateCenter(long[] center)
public void updateCenter(Localizable center)
public boolean hasNext()
Iteratorpublic void fwd()
Iteratorpublic void jumpFwd(long steps)
Iteratorsteps - number of steps to move forwardpublic void reset()
IteratorIterator, that is put it to where it would be if newly
created.public void localize(float[] position)
RealLocalizablelocalize in interface RealLocalizableposition - receives current positionpublic void localize(double[] position)
RealLocalizablelocalize in interface RealLocalizableposition - receives current positionpublic float getFloatPosition(int d)
RealLocalizablegetFloatPosition in interface LocalizablegetFloatPosition in interface RealLocalizabled - dimensionpublic double getDoublePosition(int d)
RealLocalizablegetDoublePosition in interface LocalizablegetDoublePosition in interface RealLocalizabled - dimensionpublic int numDimensions()
EuclideanSpacenumDimensions in interface EuclideanSpacepublic T get()
SamplerSampler points at.public void localize(int[] position)
Localizablelocalize in interface Localizableposition - receives current positionpublic void localize(long[] position)
Localizablelocalize in interface Localizableposition - receives current positionpublic int getIntPosition(int d)
LocalizablegetIntPosition in interface Localizabled - dimensionpublic long getLongPosition(int d)
LocalizablegetLongPosition in interface Localizabled - dimensionpublic LocalNeighborhoodCursor<T> copyCursor()
copyCursor in interface Cursor<T>copyCursor in interface RealCursor<T>public LocalNeighborhoodCursor<T> copy()
copy in interface Sampler<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)Copyright © 2015–2022 ImgLib2. All rights reserved.