public class TurboRegPointHandler
extends ij.gui.Roi
Modifier and Type | Field and Description |
---|---|
static int |
MAGNIFIER
The magnifying tool is set in eleventh position to be coherent with
ImageJ.
|
static int |
MOVE_CROSS
The moving tool is set in second position to be coherent with the
PointPicker_ plugin. |
static int |
NUM_POINTS
The number of points we are willing to deal with is at most
4 . |
ANGLE, asp_bk, aspect, cachedMask, center, clipboard, clipHeight, clipWidth, clipX, clipY, COMPOSITE, constrain, CONSTRUCTING, defaultColor, defaultFillColor, FERET_ARRAY_POINTOFFSET, FERET_ARRAYSIZE, fillColor, flattenScale, FREELINE, FREEROI, HANDLE_SIZE, handleColor, ic, ignoreClipRect, imp, instanceColor, LINE, lineWidth, mag, MOVING, MOVING_HANDLE, nonScalable, NORMAL, NOT_PASTING, oldHeight, oldWidth, oldX, oldY, onePixelWide, OVAL, overlay, pasteMode, POINT, POLYGON, POLYLINE, previousRoi, RECTANGLE, RESIZING, ROIColor, stroke, strokeColor, TRACED_ROI, type, updateFullWindow, wideLine, xMax, yMax
Constructor and Description |
---|
TurboRegPointHandler(double[][] precisionPoint,
TurboRegTransformationType transformation)
Keep a local copy of the points and of the transformation.
|
TurboRegPointHandler(ij.ImagePlus imp,
TurboRegTransformationType transformation)
Keep a local copy of the
ImagePlus object. |
Modifier and Type | Method and Description |
---|---|
void |
draw(Graphics g)
Draw the landmarks.
|
int |
findClosest(int x,
int y)
Set the current point as that which is closest to (x, y).
|
Point |
getPoint()
Return the current point as a
Point object. |
double[][] |
getPoints()
Return all landmarks as an array
double[transformation / 2][2] ,
except for a rigid-body transformation for which the array has size
double[3][2] . |
void |
movePoint(int x,
int y)
Modify the location of the current point.
|
void |
setCurrentPoint(int currentPoint)
Set a new current point.
|
void |
setPoints(double[][] precisionPoint)
Set new position for all landmarks, without clipping.
|
void |
setTransformation(TurboRegTransformationType transformation)
Reset the landmarks to their initial position for the given
transformation.
|
abortModification, abortPaste, addRoiListener, clipRectMargin, clone, contains, containsPoint, convertLineToArea, convertToPolygon, copyAttributes, create, create, drawOverlay, drawPixels, drawPixels, enableSubPixelResolution, endPaste, equals, getAngle, getAngle, getAntiAlias, getBoundingRect, getBounds, getColor, getContainedFloatPoints, getContainedPoints, getContourCentroid, getConvexHull, getCornerDiameter, getCPosition, getCurrentPasteMode, getDebugInfo, getDefaultFillColor, getDefaultGroup, getDefaultHandleSize, getDefaultStrokeWidth, getDrawOffset, getFeretsDiameter, getFeretValues, getFillColor, getFloatAngle, getFloatBounds, getFloatConvexHull, getFloatHeight, getFloatPolygon, getFloatPolygon, getFloatWidth, getGroup, getGroupName, getGroupNames, getHandleSize, getHashCode, getImage, getImageID, getInterpolatedPolygon, getInterpolatedPolygon, getInterpolatedPolygon, getInverse, getLength, getListeners, getMagnification, getMask, getName, getPasteMode, getPolygon, getPosition, getPreviousRoi, getProperties, getProperty, getPropertyCount, getPrototypeOverlay, getRotationCenter, getRoundRectArcSize, getScaledStroke, getScaleStrokeWidth, getState, getStatistics, getStroke, getStrokeColor, getStrokeWidth, getTPosition, getType, getTypeAsString, getXBase, getYBase, getZPosition, grow, handleMouseDown, handleMouseDrag, handleMouseUp, hasHyperStackPosition, isActiveOverlayRoi, isArea, isCursor, isDrawingTool, isHandle, isInteger, isLine, isLineOrPoint, isVisible, iterator, lineCircleIntersection, magnificationForSubPixel, magnificationForSubPixel, mouseDownInHandle, mouseDragged, mouseMoved, mouseReleased, moveHandle, notifyListeners, nudge, nudgeCorner, offScreenX, offScreenXD, offScreenY, offScreenYD, removeRoiListener, resetDefaultHandleSize, saveGroupNames, screenX, screenXD, screenY, screenYD, setAntiAlias, setBounds, setColor, setCornerDiameter, setDefaultColor, setDefaultFillColor, setDefaultGroup, setDefaultStrokeWidth, setDrawOffset, setFillColor, setFlattenScale, setGroup, setGroupName, setGroupNames, setHandleSize, setIgnoreClipRect, setImage, setInstanceColor, setIsCursor, setLineWidth, setLocation, setLocation, setName, setNonScalable, setPasteMode, setPosition, setPosition, setPosition, setPreviousRoi, setProperties, setProperty, setPrototypeOverlay, setRenderingHint, setRotationCenter, setRoundRectArcSize, setStroke, setStrokeColor, setStrokeWidth, setStrokeWidth, setUnscalableStrokeWidth, showStatus, size, startPaste, subPixelResolution, temporarilyHide, toFloat, toInt, toInt, toIntR, toString, translate, update, updateClipRect, updateWideLine, useLineSubpixelConvention, xor
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
forEach, spliterator
public static final int MAGNIFIER
public static final int MOVE_CROSS
PointPicker_
plugin.public static final int NUM_POINTS
4
.public TurboRegPointHandler(double[][] precisionPoint, TurboRegTransformationType transformation)
public TurboRegPointHandler(ij.ImagePlus imp, TurboRegTransformationType transformation)
ImagePlus
object. Set the
landmarks to their initial position for the given transformation.imp
- ImagePlus
object.transformation
- Transformation code.public void draw(Graphics g)
draw
in class ij.gui.Roi
g
- Graphics environment.public int findClosest(int x, int y)
x
- Horizontal coordinate in canvas units.y
- Vertical coordinate in canvas units.public Point getPoint()
Point
object.public double[][] getPoints()
double[transformation / 2][2]
,
except for a rigid-body transformation for which the array has size
double[3][2]
.public void setPoints(double[][] precisionPoint)
precisionPoint
- New coordinates in canvas units.public void movePoint(int x, int y)
x
- Desired new horizontal coordinate in canvas units.y
- Desired new vertical coordinate in canvas units.public void setCurrentPoint(int currentPoint)
currentPoint
- New current point index.public void setTransformation(TurboRegTransformationType transformation)
transformation
- Transformation code.Copyright © 2020–2025 Leibniz Institute for Natural Product Research and Infection Biology - Hans Knöll Institute (HKI). All rights reserved.