public class SpotNeighborhoodCursor<T extends RealType<T>> extends Object implements Cursor<T>
| Modifier and Type | Field and Description |
|---|---|
protected double[] |
calibration |
protected long[] |
center |
protected Cursor<T> |
cursor |
| Constructor and Description |
|---|
SpotNeighborhoodCursor(SpotNeighborhood<T> sn) |
| Modifier and Type | Method and Description |
|---|---|
Sampler<T> |
copy() |
Cursor<T> |
copyCursor() |
void |
fwd() |
T |
get() |
double |
getDistanceSquared()
Return the square distance measured from the center of the domain to the current
cursor position, in calibrated units.
|
double |
getDoublePosition(int d) |
float |
getFloatPosition(int d) |
int |
getIntPosition(int d) |
long |
getLongPosition(int d) |
double |
getPhi()
Return the azimuth of the spherical coordinates of this cursor, with respect
to its center.
|
void |
getRelativePosition(double[] position)
Store the relative calibrated position with respect to the neighborhood center.
|
double |
getTheta()
Return the current inclination with respect to this spot center.
|
boolean |
hasNext() |
void |
jumpFwd(long steps) |
void |
localize(double[] position) |
void |
localize(float[] position) |
void |
localize(int[] position) |
void |
localize(long[] position) |
T |
next() |
int |
numDimensions() |
void |
remove() |
void |
reset() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemaininglocalize, positionAsLongArray, positionAsPointlocalize, positionAsDoubleArray, positionAsRealPointpublic SpotNeighborhoodCursor(SpotNeighborhood<T> sn)
public void getRelativePosition(double[] position)
public double getDistanceSquared()
public double getTheta()
In spherical coordinates, the inclination is the angle between the Z axis and the line OM where O is the sphere center and M is the point location.
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 localize(float[] position)
localize in interface RealLocalizablepublic void localize(double[] position)
localize in interface RealLocalizablepublic float getFloatPosition(int d)
getFloatPosition in interface LocalizablegetFloatPosition in interface RealLocalizablepublic double getDoublePosition(int d)
getDoublePosition in interface LocalizablegetDoublePosition in interface RealLocalizablepublic int numDimensions()
numDimensions in interface EuclideanSpacepublic void jumpFwd(long steps)
public void fwd()
public void reset()
public void localize(int[] position)
localize in interface Localizablepublic void localize(long[] position)
localize in interface Localizablepublic int getIntPosition(int d)
getIntPosition in interface Localizablepublic long getLongPosition(int d)
getLongPosition in interface Localizablepublic Cursor<T> copyCursor()
copyCursor in interface Cursor<T extends RealType<T>>copyCursor in interface RealCursor<T extends RealType<T>>Copyright © 2015–2021 Fiji. All rights reserved.