public abstract class AbstractNeighborhood<T> extends Object implements Positionable, IterableInterval<T>
Positionable IterableInterval that serves as a local
neighborhood, e.g. in filtering operation.
This particular class implements a movable nD domain, defined by a
span long[] array. The span array is such that the
bounding box of the neighborhood in dimension d will be
2 x span[d] + 1.
| Modifier and Type | Field and Description |
|---|---|
protected long[] |
center
The pixel coordinates of the center of this regions.
|
protected ExtendedRandomAccessibleInterval<T,RandomAccessibleInterval<T>> |
extendedSource |
protected int |
n |
protected OutOfBoundsFactory<T,RandomAccessibleInterval<T>> |
outOfBounds |
protected RandomAccessibleInterval<T> |
source |
protected long[] |
span
The span of this neighborhood, such that the size of the bounding box in
dimension
d will be 2 x span[d] + 1. |
| Constructor and Description |
|---|
AbstractNeighborhood(int numDims,
OutOfBoundsFactory<T,RandomAccessibleInterval<T>> outOfBounds) |
| Modifier and Type | Method and Description |
|---|---|
void |
bck(int d) |
abstract AbstractNeighborhood<T> |
copy()
Copies the
AbstractNeighborhood. |
long |
dimension(int d) |
void |
dimensions(long[] dimensions) |
T |
firstElement()
Return the element at the top-left corner of this nD neighborhood.
|
void |
fwd(int d) |
Object |
iterationOrder() |
long |
max(int d) |
void |
max(long[] max) |
void |
max(Positionable max) |
long |
min(int d) |
void |
min(long[] min) |
void |
min(Positionable min) |
void |
move(int[] distance) |
void |
move(int distance,
int d) |
void |
move(Localizable localizable) |
void |
move(long[] distance) |
void |
move(long distance,
int d) |
int |
numDimensions() |
void |
realMax(double[] max) |
double |
realMax(int d) |
void |
realMax(RealPositionable max) |
void |
realMin(double[] min) |
double |
realMin(int d) |
void |
realMin(RealPositionable min) |
void |
setPosition(int[] position) |
void |
setPosition(int position,
int d) |
void |
setPosition(Localizable localizable) |
void |
setPosition(long[] position) |
void |
setPosition(long position,
int d) |
void |
setSpan(long[] span)
Set the span of this neighborhood.
|
void |
updateSource(RandomAccessibleInterval<T> source)
Updates the source.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcursor, localizingCursorsizeforEach, iterator, spliteratormaxAsLongArray, maxAsPoint, minAsLongArray, minAsPointmaxAsDoubleArray, maxAsRealPoint, minAsDoubleArray, minAsRealPointallPositive, allPositive, dimensions, dimensionsAsLongArray, dimensionsAsPoint, verify, verify, verifyAllPositive, verifyAllPositiveprotected final long[] center
protected final long[] span
d will be 2 x span[d] + 1.protected ExtendedRandomAccessibleInterval<T,RandomAccessibleInterval<T>> extendedSource
protected RandomAccessibleInterval<T> source
protected OutOfBoundsFactory<T,RandomAccessibleInterval<T>> outOfBounds
protected int n
public AbstractNeighborhood(int numDims,
OutOfBoundsFactory<T,RandomAccessibleInterval<T>> outOfBounds)
public void setSpan(long[] span)
The neighborhood span is such that the size of the neighborhood in
dimension d will be 2 x span[d] + 1.
span - this array content will be copied to the neighborhood internal
field.public int numDimensions()
numDimensions in interface EuclideanSpacepublic void fwd(int d)
fwd in interface Positionablepublic void bck(int d)
bck in interface Positionablepublic void move(int distance,
int d)
move in interface Positionablepublic void move(long distance,
int d)
move in interface Positionablepublic void move(Localizable localizable)
move in interface Positionablepublic void move(int[] distance)
move in interface Positionablepublic void move(long[] distance)
move in interface Positionablepublic void setPosition(Localizable localizable)
setPosition in interface Positionablepublic void setPosition(int[] position)
setPosition in interface Positionablepublic void setPosition(long[] position)
setPosition in interface Positionablepublic void setPosition(int position,
int d)
setPosition in interface Positionablepublic void setPosition(long position,
int d)
setPosition in interface Positionablepublic T firstElement()
firstElement in interface IterableRealInterval<T>public Object iterationOrder()
iterationOrder in interface IterableRealInterval<T>public double realMin(int d)
realMin in interface IntervalrealMin in interface RealIntervalpublic void realMin(double[] min)
realMin in interface RealIntervalpublic void realMin(RealPositionable min)
realMin in interface RealIntervalpublic double realMax(int d)
realMax in interface IntervalrealMax in interface RealIntervalpublic void realMax(double[] max)
realMax in interface RealIntervalpublic void realMax(RealPositionable max)
realMax in interface RealIntervalpublic void min(Positionable min)
public void max(Positionable max)
public void dimensions(long[] dimensions)
dimensions in interface Dimensionspublic long dimension(int d)
dimension in interface Dimensionsdimension in interface Intervalpublic void updateSource(RandomAccessibleInterval<T> source)
public abstract AbstractNeighborhood<T> copy()
AbstractNeighborhood.Copyright © 2009–2020 ImgLib2. All rights reserved.