T
- public class EllipsoidNeighborhood<T> extends AbstractNeighborhood<T>
IterableInterval
representing the volume of a
3D ellipsoid.
The semi-radiuses of the ellipsoid are set by the first 3 elements of the
AbstractNeighborhood.span
array. They are such that the bounding box
of the ellipsoid are 2 x span[d] + 1
for dimension
d
.
The ellipsoid can be positioned anywhere in a nD image (n >= 3), but will
always by 3D. Consequently, only the first 3 elements of the
AbstractNeighborhood.span
array are considered.
EllipsoidCursor
center, extendedSource, n, outOfBounds, source, span
Constructor and Description |
---|
EllipsoidNeighborhood(RandomAccessibleInterval<T> source,
long[] center,
long[] radiuses) |
EllipsoidNeighborhood(RandomAccessibleInterval<T> source,
long[] center,
long[] radiuses,
OutOfBoundsFactory<T,RandomAccessibleInterval<T>> outOfBounds) |
Modifier and Type | Method and Description |
---|---|
EllipsoidNeighborhood<T> |
copy()
Copies the
AbstractNeighborhood . |
EllipsoidCursor<T> |
cursor()
Returns a
RealCursor that iterates with optimal speed without
calculating the location at each iteration step. |
EllipsoidCursor<T> |
iterator() |
EllipsoidCursor<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, updateSource
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
public EllipsoidNeighborhood(RandomAccessibleInterval<T> source, long[] center, long[] radiuses, OutOfBoundsFactory<T,RandomAccessibleInterval<T>> outOfBounds)
public EllipsoidNeighborhood(RandomAccessibleInterval<T> source, long[] center, long[] radiuses)
public long size()
IterableRealInterval
Returns the number of elements in this Function
.
public EllipsoidCursor<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 EllipsoidCursor<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 EllipsoidCursor<T> iterator()
public EllipsoidNeighborhood<T> copy()
AbstractNeighborhood
AbstractNeighborhood
.copy
in class AbstractNeighborhood<T>
Copyright © 2015–2022 ImgLib2. All rights reserved.