T - public class BufferedRectangularNeighborhoodCursor<T extends Type<T>> extends AbstractNeighborhoodCursor<T>
neighborhood, ra| Modifier | Constructor and Description |
|---|---|
|
BufferedRectangularNeighborhoodCursor(BufferedRectangularNeighborhood<T> neighborhood) |
protected |
BufferedRectangularNeighborhoodCursor(BufferedRectangularNeighborhoodCursor<T> c) |
| Modifier and Type | Method and Description |
|---|---|
BufferedRectangularNeighborhoodCursor<T> |
copy() |
BufferedRectangularNeighborhoodCursor<T> |
copyCursor() |
void |
fwd() |
T |
get()
Access the actual T instance providing access to a pixel,
sub-pixel or integral region value the
Sampler points at. |
double |
getDoublePosition(int d)
Return the current position in a given dimension.
|
float |
getFloatPosition(int d)
Return the current position in a given dimension.
|
int |
getIntPosition(int d)
Return the current position in a given dimension.
|
long |
getLongPosition(int d)
Return the current position in a given dimension.
|
boolean |
hasNext() |
void |
localize(double[] position)
Write the current position into the passed array.
|
void |
localize(float[] position)
Write the current position into the passed array.
|
void |
localize(int[] position)
Write the current position into the passed array.
|
void |
localize(long[] position)
Write the current position into the passed array.
|
T |
next() |
void |
reset() |
isOutOfBounds, jumpFwd, numDimensions, removeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemaininglocalize, positionAsLongArray, positionAsPointlocalize, positionAsDoubleArray, positionAsRealPointpublic BufferedRectangularNeighborhoodCursor(BufferedRectangularNeighborhood<T> neighborhood)
protected BufferedRectangularNeighborhoodCursor(BufferedRectangularNeighborhoodCursor<T> c)
public T get()
SamplerSampler points at.public T next()
public void fwd()
public void reset()
public boolean hasNext()
public float getFloatPosition(int d)
RealLocalizablegetFloatPosition in interface LocalizablegetFloatPosition in interface RealLocalizablegetFloatPosition in class AbstractNeighborhoodCursor<T extends Type<T>>d - dimensionpublic double getDoublePosition(int d)
RealLocalizablegetDoublePosition in interface LocalizablegetDoublePosition in interface RealLocalizablegetDoublePosition in class AbstractNeighborhoodCursor<T extends Type<T>>d - dimensionpublic int getIntPosition(int d)
LocalizablegetIntPosition in interface LocalizablegetIntPosition in class AbstractNeighborhoodCursor<T extends Type<T>>d - dimensionpublic long getLongPosition(int d)
LocalizablegetLongPosition in interface LocalizablegetLongPosition in class AbstractNeighborhoodCursor<T extends Type<T>>d - dimensionpublic void localize(long[] position)
Localizablelocalize in interface Localizablelocalize in class AbstractNeighborhoodCursor<T extends Type<T>>position - receives current positionpublic void localize(float[] position)
RealLocalizablelocalize in interface RealLocalizablelocalize in class AbstractNeighborhoodCursor<T extends Type<T>>position - receives current positionpublic void localize(double[] position)
RealLocalizablelocalize in interface RealLocalizablelocalize in class AbstractNeighborhoodCursor<T extends Type<T>>position - receives current positionpublic void localize(int[] position)
Localizablelocalize in interface Localizablelocalize in class AbstractNeighborhoodCursor<T extends Type<T>>position - receives current positionpublic BufferedRectangularNeighborhoodCursor<T> copy()
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 BufferedRectangularNeighborhoodCursor<T> copyCursor()
Copyright © 2015–2022 ImgLib2. All rights reserved.