|
jAER project on SourceForge | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.jaer.stereopsis.StereoGeometry
public class StereoGeometry
Encapsulates stereo geometry. The basic geometry for parallel camera (infinite vergence) is shown in the following image.
Constructor Summary | |
---|---|
StereoGeometry(AEChip chip)
Creates a new instance of StereoGeometry |
Method Summary | |
---|---|
void |
compute3dlocationM(float px,
float py,
float disparity,
float[] p)
Computes the 3d location of the binocular point where 0,0,0 is the viewer between the eyes and z runs out from viewer, x horizontally from left to right in image with 0 at center, and y like x but vertically in image. |
void |
compute3dVelocityMps(float[] position,
float disparity,
float pvx,
float pvy,
float pvd,
float[] p)
Computes the 3d velocity of the binocular point where 0,0,0 is the viewer between the eyes and z runs out from viewer, x horizontally from left to right in image with 0 at center, and y like x but vertically in image. |
float |
computeViewerDistanceFromDisparityM(float disparity)
|
float |
getBaselineMm()
|
float |
getFocalLengthMm()
|
float |
getVergenceDistanceMm()
|
void |
setBaselineMm(float baselineMm)
The baseline is the distance between the two eyes |
void |
setFocalLengthMm(float focalLengthMm)
|
void |
setVergenceDistanceMm(float vergenceDistanceMm)
The vergence distance is the distance from the viewer that the two eyes verge. |
void |
update(java.util.Observable o,
java.lang.Object arg)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StereoGeometry(AEChip chip)
Method Detail |
---|
public float computeViewerDistanceFromDisparityM(float disparity)
disparity
- the total disparity in pixels between the left and right eyes, i.e. the shift required to bring a feature on one of them in registration
with a feature in the other. (The shift can be in either eye or can consist of a shift in both, either way, the total disparity is the same.)
public void compute3dlocationM(float px, float py, float disparity, float[] p)
disparity
- the total disparity in pixels between the left and right eyes, i.e. the shift required to bring a feature on one of them in registration
with a feature in the other. (The shift can be in either eye or can consist of a shift in both, either way, the total disparity is the same.)px
- the pixel x position of cyclopean position (mean of x positions from left and right eye)py
- the pixel y position of cyclopean position (mean of y positions from left and right eye)p
- a 3-vector where results are writtencompute3dVelocityMps(float[], float, float, float, float, float[])
public void compute3dVelocityMps(float[] position, float disparity, float pvx, float pvy, float pvd, float[] p)
position
- the x,y,z float 3-vector physical position in meters in eye coordinates as computed by compute3dlocationM(float, float, float, float[])
disparity
- the disparity as used as earlier input for position (this saves computation internally)pvx
- the cluster's pixel x velocity in pixels per secondpvy
- the cluster's pixel y velocitypvd
- the cluster's pixel disparity velocityp
- a 3-vector where results are written as velocity in meters per second in eye coordinate space.
If the disparity is negative or zero, indicating infinite distance, all velocities are set to zero.compute3dlocationM(float, float, float, float[])
public float getBaselineMm()
public void setBaselineMm(float baselineMm)
baselineMm
- the distance in mmpublic float getFocalLengthMm()
public void setFocalLengthMm(float focalLengthMm)
public float getVergenceDistanceMm()
public void setVergenceDistanceMm(float vergenceDistanceMm)
vergenceDistanceMm
- the distance in mmpublic void update(java.util.Observable o, java.lang.Object arg)
update
in interface java.util.Observer
|
jAER project on SourceForge | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |