public class PositiveDepthConstraintCheck
extends java.lang.Object
Given two views of the same point and a known 3D transform checks to see if the point is in front of both cameras. This is the positive depth constraint. A class is provided instead of a function to reduce computational overhead each time the function is called. Memory only needs to be declared once. Also less chance of messing up and only checking one view instead of two views if you use this class.
COORDINATE SYSTEM: Right handed coordinate system with +z is pointing along the camera's optical axis,
| Constructor and Description |
|---|
PositiveDepthConstraintCheck() |
PositiveDepthConstraintCheck(TriangulateTwoViewsCalibrated triangulate) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkConstraint(georegression.struct.point.Point2D_F64 viewA,
georegression.struct.point.Point2D_F64 viewB,
georegression.struct.se.Se3_F64 fromAtoB)
Checks to see if a single point meets the constraint.
|
public PositiveDepthConstraintCheck(TriangulateTwoViewsCalibrated triangulate)
public PositiveDepthConstraintCheck()
public boolean checkConstraint(georegression.struct.point.Point2D_F64 viewA,
georegression.struct.point.Point2D_F64 viewB,
georegression.struct.se.Se3_F64 fromAtoB)
viewA - View of the 3D point from the first camera. Calibrated coordinates.viewB - View of the 3D point from the second camera. Calibrated coordinates.fromAtoB - Transform from the B to A camera frame.