public class CameraTilingStageTranslator extends Object
| Constructor and Description |
|---|
CameraTilingStageTranslator(AffineTransform transform,
String xyStageName,
int width,
int height,
int overlapX,
int overlapY) |
| Modifier and Type | Method and Description |
|---|---|
Point |
getDisplayedPixel(double magnification,
long row,
long col,
double viewOffsetX,
double viewOffsetY)
return the pixel location in coordinates at appropriate res level of the
top left pixel for the given row/column
|
Point2D.Double[] |
getDisplayTileCornerStageCoords(XYStagePosition pos) |
int |
getDisplayTileHeight() |
int |
getDisplayTileWidth() |
int |
getFullResPositionIndexFromStageCoords(double x,
double y) |
Point |
getPixelCoordsFromStageCoords(double stageX,
double stageY) |
int[] |
getPositionIndices(int[] rows,
int[] cols)
Return the position indices for the positions at the specified rows, cols.
|
List<XYStagePosition> |
getPositionList() |
Point2D.Double |
getStageCoordsFromPixelCoords(long xAbsolute,
long yAbsolute) |
Point |
getTileIndicesFromDisplayedPixel(double magnification,
int x,
int y,
double viewOffsetX,
double viewOffsetY) |
XYStagePosition |
getXYPosition(int index) |
Point |
pixelCoordsFromStageCoords(double x,
double y,
double magnification,
Point2D.Double offset) |
void |
setPositions(List<XYStagePosition> positions)
Set a grid of XY stage positions, as generated from some external source, so that they can be used
to in caculations relating pixel and stage coordinates
|
Point2D.Double |
stageCoordsFromPixelCoords(int absoluteX,
int absoluteY,
double mag,
Point2D.Double offset) |
public CameraTilingStageTranslator(AffineTransform transform, String xyStageName, int width, int height, int overlapX, int overlapY)
public Point getTileIndicesFromDisplayedPixel(double magnification, int x, int y, double viewOffsetX, double viewOffsetY)
public Point getDisplayedPixel(double magnification, long row, long col, double viewOffsetX, double viewOffsetY)
row - col - public Point2D.Double stageCoordsFromPixelCoords(int absoluteX, int absoluteY, double mag, Point2D.Double offset)
absoluteX - x coordinate in the full Res stitched imageabsoluteY - y coordinate in the full res stitched imagepublic Point pixelCoordsFromStageCoords(double x, double y, double magnification, Point2D.Double offset)
public Point2D.Double getStageCoordsFromPixelCoords(long xAbsolute, long yAbsolute)
xAbsolute - x coordinate in the full Res stitched imageyAbsolute - y coordinate in the full res stitched imagepublic Point getPixelCoordsFromStageCoords(double stageX, double stageY)
public XYStagePosition getXYPosition(int index)
public int getFullResPositionIndexFromStageCoords(double x,
double y)
public List<XYStagePosition> getPositionList()
public void setPositions(List<XYStagePosition> positions)
positions - public int[] getPositionIndices(int[] rows,
int[] cols)
rows - cols - public int getDisplayTileHeight()
public int getDisplayTileWidth()
public Point2D.Double[] getDisplayTileCornerStageCoords(XYStagePosition pos)
Copyright © 2023. All rights reserved.