public class MeshIterable<T> extends Object implements IterableInterval<T>
| Constructor and Description |
|---|
MeshIterable(RandomAccessible<T> ra,
Mesh mesh,
double[] calibration)
Creates an iterable for the pixels of the specified image inside the
specified mesh.
|
MeshIterable(RandomAccessible<T> ra,
Mesh mesh,
double[] calibration,
RealInterval boundingBox)
Creates an iterable for the pixels of the specified image inside the
specified mesh.
|
| Modifier and Type | Method and Description |
|---|---|
Cursor<T> |
cursor() |
T |
firstElement() |
Object |
iterationOrder() |
Iterator<T> |
iterator() |
Cursor<T> |
localizingCursor() |
long |
max(int d) |
long |
min(int d) |
int |
numDimensions() |
long |
size() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratordimension, max, max, maxAsLongArray, maxAsPoint, min, min, minAsLongArray, minAsPoint, realMax, realMinmaxAsDoubleArray, maxAsRealPoint, minAsDoubleArray, minAsRealPoint, realMax, realMax, realMin, realMinallPositive, allPositive, dimensions, dimensions, dimensionsAsLongArray, dimensionsAsPoint, verify, verify, verifyAllPositive, verifyAllPositivepublic MeshIterable(RandomAccessible<T> ra, Mesh mesh, double[] calibration)
ra - the random accessible to iterate over. It is the caller
responsibility to ensure the random accessible is extended to
accommodate the mesh coordinates.mesh - the mesh to iterate in.calibration - the calibration array, used to map pixel coordinates to mesh
coordinates (mesh_x = pixel_x * calibration[0]
etc).public MeshIterable(RandomAccessible<T> ra, Mesh mesh, double[] calibration, RealInterval boundingBox)
ra - the random accessible to iterate over. It is the caller
responsibility to ensure the random accessible is extended to
accommodate the mesh coordinates.mesh - the mesh to iterate in.calibration - the calibration array, used to map pixel coordinates to mesh
coordinates (mesh_x = pixel_x * calibration[0]
etc).boundingBox - the bounding-box if it's available, to avoid recomputing it.public int numDimensions()
numDimensions in interface EuclideanSpacepublic long size()
size in interface IterableRealInterval<T>public T firstElement()
firstElement in interface IterableRealInterval<T>public Object iterationOrder()
iterationOrder in interface IterableRealInterval<T>public Cursor<T> cursor()
cursor in interface IterableInterval<T>cursor in interface IterableRealInterval<T>public Cursor<T> localizingCursor()
localizingCursor in interface IterableInterval<T>localizingCursor in interface IterableRealInterval<T>Copyright © 2016–2023 ImgLib2. All rights reserved.