public class DiamondTipsNeighborhoodUnsafe<T> extends DiamondTipsNeighborhood<T>
DiamondTipsNeighborhood.LocalCursor
position
n
Modifier and Type | Method and Description |
---|---|
DiamondTipsNeighborhood.LocalCursor |
cursor()
Returns a
RealCursor that iterates with optimal speed without
calculating the location at each iteration step. |
static <T> DiamondTipsNeighborhoodFactory<T> |
factory() |
T |
firstElement()
Get the first element of this
IterableRealInterval . |
dimension, dimensions, 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> DiamondTipsNeighborhoodFactory<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 DiamondTipsNeighborhood<T>
public DiamondTipsNeighborhood.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 DiamondTipsNeighborhood<T>
Copyright © 2015–2022 ImgLib2. All rights reserved.