public abstract class RectangleNeighborhoodLocalizableSampler<T> extends AbstractEuclideanSpace implements Localizable, Sampler<Neighborhood<T>>
| Modifier and Type | Field and Description |
|---|---|
protected long[] |
currentMax |
protected long[] |
currentMin |
protected Neighborhood<T> |
currentNeighborhood |
protected long[] |
currentPos |
protected RectangleNeighborhoodFactory<T> |
neighborhoodFactory |
protected RandomAccessible<T> |
source |
protected Interval |
sourceInterval |
protected Interval |
span |
n| Modifier | Constructor and Description |
|---|---|
|
RectangleNeighborhoodLocalizableSampler(RandomAccessible<T> source,
Interval span,
RectangleNeighborhoodFactory<T> factory,
Interval accessInterval) |
protected |
RectangleNeighborhoodLocalizableSampler(RectangleNeighborhoodLocalizableSampler<T> c) |
| Modifier and Type | Method and Description |
|---|---|
Neighborhood<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.
|
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.
|
numDimensionsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitlocalize, positionAsLongArray, positionAsPointlocalize, positionAsDoubleArray, positionAsRealPointnumDimensionsprotected final RandomAccessible<T> source
protected final Interval span
protected final Interval sourceInterval
protected final RectangleNeighborhoodFactory<T> neighborhoodFactory
protected final Neighborhood<T> currentNeighborhood
protected final long[] currentPos
protected final long[] currentMin
protected final long[] currentMax
public RectangleNeighborhoodLocalizableSampler(RandomAccessible<T> source, Interval span, RectangleNeighborhoodFactory<T> factory, Interval accessInterval)
protected RectangleNeighborhoodLocalizableSampler(RectangleNeighborhoodLocalizableSampler<T> c)
public Neighborhood<T> get()
SamplerSampler points at.get in interface Sampler<Neighborhood<T>>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 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 - dimensionCopyright © 2015–2022 ImgLib2. All rights reserved.