public class PixelStageTranslator extends Object
| Constructor and Description |
|---|
PixelStageTranslator(AffineTransform transform,
String xyStageName,
int width,
int height,
int overlapX,
int overlapY) |
| Modifier and Type | Method and Description |
|---|---|
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) |
XYStagePosition |
getXYPosition(int index) |
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
|
public PixelStageTranslator(AffineTransform transform, String xyStageName, int width, int height, int overlapX, int overlapY)
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.