public abstract class HorizontalLineNeighborhoodLocalizableSampler<T> extends AbstractEuclideanSpace implements Localizable, Sampler<Neighborhood<T>>
Modifier and Type | Field and Description |
---|---|
protected Neighborhood<T> |
currentNeighborhood |
protected long[] |
currentPos |
protected int |
dim |
protected HorizontalLineNeighborhoodFactory<T> |
neighborhoodFactory |
protected RandomAccessible<T> |
source |
protected Interval |
sourceInterval |
protected long |
span |
n
Modifier | Constructor and Description |
---|---|
protected |
HorizontalLineNeighborhoodLocalizableSampler(HorizontalLineNeighborhoodLocalizableSampler<T> c) |
|
HorizontalLineNeighborhoodLocalizableSampler(RandomAccessible<T> source,
long span,
int dim,
boolean skipCenter,
HorizontalLineNeighborhoodFactory<T> factory,
Interval accessInterval) |
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.
|
numDimensions
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
localize, positionAsLongArray, positionAsPoint
localize, positionAsDoubleArray, positionAsRealPoint
numDimensions
protected final RandomAccessible<T> source
protected final Interval sourceInterval
protected final long span
protected final int dim
protected final long[] currentPos
protected final HorizontalLineNeighborhoodFactory<T> neighborhoodFactory
protected final Neighborhood<T> currentNeighborhood
public HorizontalLineNeighborhoodLocalizableSampler(RandomAccessible<T> source, long span, int dim, boolean skipCenter, HorizontalLineNeighborhoodFactory<T> factory, Interval accessInterval)
protected HorizontalLineNeighborhoodLocalizableSampler(HorizontalLineNeighborhoodLocalizableSampler<T> c)
public Neighborhood<T> get()
Sampler
Sampler
points at.get
in interface Sampler<Neighborhood<T>>
public void localize(int[] position)
Localizable
localize
in interface Localizable
position
- receives current positionpublic void localize(long[] position)
Localizable
localize
in interface Localizable
position
- receives current positionpublic int getIntPosition(int d)
Localizable
getIntPosition
in interface Localizable
d
- dimensionpublic long getLongPosition(int d)
Localizable
getLongPosition
in interface Localizable
d
- dimensionpublic void localize(float[] position)
RealLocalizable
localize
in interface RealLocalizable
position
- receives current positionpublic void localize(double[] position)
RealLocalizable
localize
in interface RealLocalizable
position
- receives current positionpublic float getFloatPosition(int d)
RealLocalizable
getFloatPosition
in interface Localizable
getFloatPosition
in interface RealLocalizable
d
- dimensionpublic double getDoublePosition(int d)
RealLocalizable
getDoublePosition
in interface Localizable
getDoublePosition
in interface RealLocalizable
d
- dimensionCopyright © 2015–2022 ImgLib2. All rights reserved.