public class RectangleNeighborhoodGPL<T> extends AbstractNeighborhood<T>
Positionable IterableInterval that serves as a local
neighborhood, e.g. in filtering operation.
This particular class implements a movable nD rectangle, defined by a
span long[] array. The span array is such that the
size of the rectangle in dimension d will be
2 x span[d] + 1. Cursors can be instantiated from this
neighborhood, that will iterate through the rectangle in raster order.
center, extendedSource, n, outOfBounds, source, span| Constructor and Description |
|---|
RectangleNeighborhoodGPL(int numDims,
OutOfBoundsFactory<T,RandomAccessibleInterval<T>> outOfBounds)
Instantiate a new rectangular neighborhood, on the given image, with the
given factory to return out of bounds values.
|
RectangleNeighborhoodGPL(RandomAccessibleInterval<T> source)
Instantiate a rectangular neighborhood, with a
OutOfBoundsPeriodicFactory |
RectangleNeighborhoodGPL(RandomAccessibleInterval<T> source,
OutOfBoundsFactory<T,RandomAccessibleInterval<T>> outOfBounds)
Instantiate a new rectangular neighborhood, on the given image, with the
given factory to return out of bounds values.
|
| Modifier and Type | Method and Description |
|---|---|
AbstractNeighborhood<T> |
copy()
Copies the
AbstractNeighborhood. |
RectangleCursor<T> |
cursor()
Returns a
RealCursor that iterates with optimal speed without
calculating the location at each iteration step. |
RectangleCursor<T> |
iterator() |
RectangleCursor<T> |
localizingCursor()
Returns a
RealLocalizable Iterator that calculates its
location at each iteration step. |
long |
size()
Returns the number of elements in this
Function. |
bck, dimension, dimensions, firstElement, fwd, iterationOrder, max, max, max, min, min, min, move, move, move, move, move, numDimensions, realMax, realMax, realMax, realMin, realMin, realMin, setPosition, setPosition, setPosition, setPosition, setPosition, setSpan, updateSourceclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratormaxAsLongArray, maxAsPoint, minAsLongArray, minAsPointmaxAsDoubleArray, maxAsRealPoint, minAsDoubleArray, minAsRealPointallPositive, allPositive, dimensions, dimensionsAsLongArray, dimensionsAsPoint, verify, verify, verifyAllPositive, verifyAllPositivepublic RectangleNeighborhoodGPL(int numDims,
OutOfBoundsFactory<T,RandomAccessibleInterval<T>> outOfBounds)
The rectangle is initiated centered on the first pixel of the source, and span a single pixel.
public RectangleNeighborhoodGPL(RandomAccessibleInterval<T> source, OutOfBoundsFactory<T,RandomAccessibleInterval<T>> outOfBounds)
The rectangle is initiated centered on the first pixel of the source, and span a single pixel.
public RectangleNeighborhoodGPL(RandomAccessibleInterval<T> source)
OutOfBoundsPeriodicFactorysource - public RectangleCursor<T> cursor()
IterableRealInterval
Returns a RealCursor that iterates with optimal speed without
calculating the location at each iteration step. Localization is
performed on demand.
Use this where localization is required rarely/ not for each iteration.
public RectangleCursor<T> localizingCursor()
IterableRealInterval
Returns a RealLocalizable Iterator that calculates its
location at each iteration step. That is, localization is performed with
optimal speed.
Use this where localization is required often/ for each iteration.
public RectangleCursor<T> iterator()
public long size()
IterableRealInterval
Returns the number of elements in this Function.
public AbstractNeighborhood<T> copy()
AbstractNeighborhoodAbstractNeighborhood.copy in class AbstractNeighborhood<T>Copyright © 2015–2022 ImgLib2. All rights reserved.