public final class EllipseCursor<T> extends AbstractNeighborhoodCursor<T>
Modifier and Type | Field and Description |
---|---|
protected boolean |
allDone |
protected boolean |
hasNext |
protected net.imglib2.algorithm.region.localneighborhood.EllipseCursor.CursorState |
nextState
The state of the cursor.
|
protected long[] |
position
Store current relative position with respect to the ellipse center.
|
protected int |
rx
When drawing a line, the line length.
|
protected int[] |
rxs
Store X line bounds for all Y
|
protected net.imglib2.algorithm.region.localneighborhood.EllipseCursor.CursorState |
state
The state of the cursor.
|
neighborhood, ra
Constructor and Description |
---|
EllipseCursor(AbstractNeighborhood<T> ellipse)
Construct a
EllipseCursor on an image |
Modifier and Type | Method and Description |
---|---|
Sampler<T> |
copy() |
Cursor<T> |
copyCursor() |
void |
fwd() |
double |
getDistanceSquared() |
double |
getPhi()
Return the azimuth of the spherical coordinates of this cursor, with respect
to its center.
|
boolean |
hasNext() |
void |
reset() |
get, getDoublePosition, getFloatPosition, getIntPosition, getLongPosition, isOutOfBounds, jumpFwd, localize, localize, localize, localize, next, numDimensions, remove
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEachRemaining
localize, positionAsLongArray, positionAsPoint
localize, positionAsDoubleArray, positionAsRealPoint
protected net.imglib2.algorithm.region.localneighborhood.EllipseCursor.CursorState state
protected net.imglib2.algorithm.region.localneighborhood.EllipseCursor.CursorState nextState
protected int rx
protected int[] rxs
protected long[] position
protected boolean allDone
protected boolean hasNext
public EllipseCursor(AbstractNeighborhood<T> ellipse)
EllipseCursor
on an imageellipse
- the neighborhood of this cursorpublic double getDistanceSquared()
public double getPhi()
In spherical coordinates, the azimuth is the angle measured in the plane XY between the X axis and the line OH where O is the sphere center and H is the orthogonal projection of the point M on the XY plane.
public void reset()
public void fwd()
public boolean hasNext()
public Sampler<T> copy()
Sampler
in the same state accessing the same
values.
It does NOT copy T, just the state of the Sampler
.
Otherwise use T.copy() if available.
Sampler.copy().get() == Sampler.get(), i.e. both hold the same
value, not necessarily the same instance (this is the case for an
ArrayCursor
for example)Copyright © 2015–2022 ImgLib2. All rights reserved.