|
jAER project on SourceForge | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectch.unizh.ini.jaer.hardware.pantilt.PanTiltCalibrator
public class PanTiltCalibrator
The calibrator for the PanTilt. It maintains the calibration from retinal to pan tilt values and in conjunction with PanTiltGUI allows manual calibration of the transform from retinal to pan-tilt space.
| Constructor Summary | |
|---|---|
PanTiltCalibrator(CalibratedPanTilt panTilt)
|
|
| Method Summary | |
|---|---|
void |
annotate(float[][][] frame)
annotate the RGB frame somehow by color pixels in the rendered pixel frame data. |
void |
annotate(javax.media.opengl.GLAutoDrawable drawable)
Each annotator enters annotate with graphics context current, in coordinates with pixel 0,0 in LL corner (note opposite from Java2D) and pixel spacing 1 unit after the scaling transform (which is already active). |
void |
annotate(java.awt.Graphics2D g)
each annotator is called by the relevant class (e.g. |
float[] |
getTransformedPanTiltFromXY(float[] xy1)
|
boolean |
isAnnotationEnabled()
|
boolean |
isCalibrating()
|
void |
propertyChange(java.beans.PropertyChangeEvent evt)
|
void |
resetToDefaultCalibration()
Resets to a default calibration |
void |
setAnnotationEnabled(boolean yes)
|
void |
setCalibrating(boolean calibrating)
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public PanTiltCalibrator(CalibratedPanTilt panTilt)
| Method Detail |
|---|
public java.lang.String toString()
toString in class java.lang.Objectpublic void propertyChange(java.beans.PropertyChangeEvent evt)
propertyChange in interface java.beans.PropertyChangeListenerpublic float[] getTransformedPanTiltFromXY(float[] xy1)
public void resetToDefaultCalibration()
public boolean isCalibrating()
public void setCalibrating(boolean calibrating)
public void setAnnotationEnabled(boolean yes)
setAnnotationEnabled in interface FrameAnnotaterpublic boolean isAnnotationEnabled()
isAnnotationEnabled in interface FrameAnnotaterpublic void annotate(float[][][] frame)
FrameAnnotater
annotate in interface FrameAnnotaterframe - the RGB pixel information. First dimension is Y, second is X, third is RGBpublic void annotate(java.awt.Graphics2D g)
FrameAnnotater
annotate in interface FrameAnnotaterg - the Graphics2D contextpublic void annotate(javax.media.opengl.GLAutoDrawable drawable)
FrameAnnotater
GL gl = drawable.getGL();
gl.glBegin(GL.GL_LINES);
gl.glColor3f(.5f, .5f, 0);
gl.glVertex2f(0, 0);
gl.glVertex2f(getSizeX() - 1, getSizeY() - 1);
gl.glEnd();
annotate in interface FrameAnnotaterdrawable - the OpenGL drawable components, e.g., GLCanvas
|
jAER project on SourceForge | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||