public abstract class CoordsCursor<T extends Type<T>> extends AbstractSpecialCursor<T>
float[]
array. It is intended for concrete cursors
than aim at being used as a ROI.Modifier and Type | Field and Description |
---|---|
protected float[] |
calibration
Contain the pixel size for each of the cursor dimension.
|
protected int[] |
origin
Contain the origin of volume iterated by this cursor, (whatever this means
for the concrete implementation).
|
protected int[] |
position
Contain the relative position of the cursor, with respect to the
origin ,
in pixel coordinates. |
cursor, hasNext, img
Constructor and Description |
---|
CoordsCursor() |
Modifier and Type | Method and Description |
---|---|
double |
getDistanceSquared()
Return the square distance measured from the center of the disc to the current
cursor position, in physical units.
|
void |
getPhysicalRelativeCoordinates(double[] coordinates)
Return the relative calibrated position of this cursor in physical units.
|
void |
getRelativePosition(int[] position)
Store the relative position of the current cursor with respect to the ball center in
the array given in argument.
|
void |
moveCenterTo(Localizable localizable)
Move the center of the sphere to the location specified by the
Localizable object. |
void |
moveCenterToCoordinates(float[] coords)
Move the center of the sphere to the location specified by the array, in physical coordinates.
|
void |
moveCenterToPosition(int[] icenter)
Move the center of the sphere to the pixel location specified by the array, in pixel coordinates.
|
close, createPositionArray, fwd, getArrayIndex, getDimensions, getDimensions, getImage, getNPixels, getNumDimensions, getPosition, getPosition, getPosition, getPositionAsString, getStorageContainer, getStorageIndex, getType, hasNext, isActive, iterator, next, remove, setDebug
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEachRemaining
forEach, spliterator
protected float[] calibration
protected int[] origin
protected int[] position
origin
,
in pixel coordinates.public final void moveCenterTo(Localizable localizable)
Localizable
object.
This resets this cursor.public final void moveCenterToPosition(int[] icenter)
public final void moveCenterToCoordinates(float[] coords)
public final double getDistanceSquared()
public final void getRelativePosition(int[] position)
int
array.public final void getPhysicalRelativeCoordinates(double[] coordinates)
Copyright © 2015–2021 Fiji. All rights reserved.