|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.awt.geom.RectangularShape java.awt.geom.Rectangle2D java.awt.Rectangle ui.recognizer.Calibration
public class Calibration
A class containing calibration information necessary for the correct mapping from image coordinates to data coordinates.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class java.awt.geom.Rectangle2D |
---|
Rectangle2D.Double, Rectangle2D.Float |
Field Summary | |
---|---|
static double |
DEFAULT_MAXX
|
static double |
DEFAULT_MAXY
|
static double |
DEFAULT_MINX
|
static double |
DEFAULT_MINY
|
static double |
DEFAULT_UNITX
|
static double |
DEFAULT_UNITY
|
protected double |
maxX
|
protected double |
maxY
|
protected double |
minX
|
protected double |
minY
|
protected double |
unitX
|
protected double |
unitY
|
Fields inherited from class java.awt.Rectangle |
---|
height, width, x, y |
Fields inherited from class java.awt.geom.Rectangle2D |
---|
OUT_BOTTOM, OUT_LEFT, OUT_RIGHT, OUT_TOP |
Constructor Summary | |
---|---|
Calibration()
|
|
Calibration(Rectangle aBorder)
|
|
Calibration(Rectangle aBorder,
double aMinX,
double aMinY,
double aMaxX,
double aMaxY)
|
|
Calibration(Rectangle aBorder,
double aMinX,
double aMinY,
double aMaxX,
double aMaxY,
double aUnitX,
double aUnitY)
|
Method Summary | |
---|---|
double |
getMaxX()
Get the maximum x value of the calibration zone. |
double |
getMaxY()
Get the maximum y value of the calibration zone. |
double |
getMinX()
Get the minimum x value of the calibration zone. |
double |
getMinY()
Get the minimum y value of the calibration zone. |
double |
getUnitX()
Get the unit of the X-axis. |
double |
getUnitY()
Get the unit of the Y-axis. |
ImageCoordinate |
map(DataCoordinate aDataCoordinate)
Convert data coordinate into an image coordinate. |
DataCoordinate |
map(ImageCoordinate anImageCoordinate)
Convert an image coordinate into a data coordinate. |
ImageCoordinate |
mapInDataUnits(DataCoordinate aDataCoordinate)
Convert data coordinate into an image coordinate in the native unit of the data. |
void |
setMaxX(double aMaxX)
Set the maximum x value of the calibration zone. |
void |
setMaxY(double aMaxY)
Set the maximum y value of the calibration zone. |
void |
setMinX(double aMinX)
Set the minimum x value of the calibration zone. |
void |
setMinY(double aMinY)
Set the minimum y value of the calibration zone. |
void |
setUnitX(double aUnitX)
|
void |
setUnitY(double aUnitY)
|
Methods inherited from class java.awt.Rectangle |
---|
add, add, add, contains, contains, contains, contains, createIntersection, createUnion, equals, getBounds, getBounds2D, getHeight, getLocation, getSize, getWidth, getX, getY, grow, inside, intersection, intersects, isEmpty, move, outcode, reshape, resize, setBounds, setBounds, setLocation, setLocation, setRect, setSize, setSize, toString, translate, union |
Methods inherited from class java.awt.geom.Rectangle2D |
---|
add, add, add, contains, contains, getPathIterator, getPathIterator, hashCode, intersect, intersects, intersectsLine, intersectsLine, outcode, setFrame, setRect, union |
Methods inherited from class java.awt.geom.RectangularShape |
---|
clone, contains, contains, getCenterX, getCenterY, getFrame, intersects, setFrame, setFrame, setFrameFromCenter, setFrameFromCenter, setFrameFromDiagonal, setFrameFromDiagonal |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.awt.Shape |
---|
contains, contains, contains, contains, getPathIterator, getPathIterator, intersects, intersects |
Field Detail |
---|
public static final double DEFAULT_MINX
public static final double DEFAULT_MINY
public static final double DEFAULT_MAXX
public static final double DEFAULT_MAXY
public static final double DEFAULT_UNITX
public static final double DEFAULT_UNITY
protected double minX
protected double minY
protected double maxX
protected double maxY
protected double unitX
protected double unitY
Constructor Detail |
---|
public Calibration()
public Calibration(Rectangle aBorder)
public Calibration(Rectangle aBorder, double aMinX, double aMinY, double aMaxX, double aMaxY)
public Calibration(Rectangle aBorder, double aMinX, double aMinY, double aMaxX, double aMaxY, double aUnitX, double aUnitY)
Method Detail |
---|
public DataCoordinate map(ImageCoordinate anImageCoordinate)
anImageCoordinate
- a coordinate in image format
public ImageCoordinate mapInDataUnits(DataCoordinate aDataCoordinate)
aDataCoordinate
- a coordinate in data format
public ImageCoordinate map(DataCoordinate aDataCoordinate)
aDataCoordinate
- a coordinate in data format
public double getUnitX()
public void setUnitX(double aUnitX)
public double getUnitY()
public void setUnitY(double aUnitY)
public double getMinX()
getMinX
in class RectangularShape
setMinX(double)
public void setMinX(double aMinX)
aMinX
- the minimum x value in the calibration zone in double precisiongetMinX()
public double getMinY()
getMinY
in class RectangularShape
public void setMinY(double aMinY)
aMinY
- the minimum intensity in the calibration zone in double precisionpublic double getMaxX()
getMaxX
in class RectangularShape
setMaxX(double)
public void setMaxX(double aMaxX)
aMaxX
- the maximum wavelength in the calibration zone in double precisionpublic double getMaxY()
getMaxY
in class RectangularShape
public void setMaxY(double aMaxY)
aMaxY
- the maximum intensity in the calibration zone in double precision
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |