public final class RectangleNeighborhoodUnsafe<T> extends RectangleNeighborhood<T>
RectangleNeighborhood.LocalCursor
position
n
Modifier and Type | Method and Description |
---|---|
RectangleNeighborhood.LocalCursor |
cursor()
Returns a
RealCursor that iterates with optimal speed without
calculating the location at each iteration step. |
static <T> RectangleNeighborhoodFactory<T> |
factory() |
T |
firstElement()
Get the first element of this
IterableRealInterval . |
dimension, dimensions, getSourceRandomAccess, getStructuringElementBoundingBox, iterationOrder, iterator, localizingCursor, max, max, max, min, min, min, realMax, realMax, realMax, realMin, realMin, realMin, size
getDoublePosition, getFloatPosition, getIntPosition, getLongPosition, localize, localize, localize, localize
numDimensions
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
maxAsLongArray, maxAsPoint, minAsLongArray, minAsPoint
maxAsDoubleArray, maxAsRealPoint, minAsDoubleArray, minAsRealPoint
allPositive, allPositive, dimensions, dimensionsAsLongArray, dimensionsAsPoint, verify, verify, verifyAllPositive, verifyAllPositive
numDimensions
getDoublePosition, getFloatPosition, getIntPosition, getLongPosition, localize, localize, localize, positionAsLongArray, positionAsPoint
localize, localize, localize, positionAsDoubleArray, positionAsRealPoint
public static <T> RectangleNeighborhoodFactory<T> factory()
public T firstElement()
IterableRealInterval
IterableRealInterval
. This is a
shortcut for cursor().next()
.
This can be used to create a new variable of type T using
firstElement().createVariable()
, which is useful in generic
methods to store temporary results, e.g., a running sum over pixels in
the IterableRealInterval
.firstElement
in interface IterableRealInterval<T>
firstElement
in class RectangleNeighborhood<T>
public RectangleNeighborhood.LocalCursor 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.
cursor
in interface IterableInterval<T>
cursor
in interface IterableRealInterval<T>
cursor
in class RectangleNeighborhood<T>
Copyright © 2015–2022 ImgLib2. All rights reserved.