Class PositiveDepthConstraintCheck

java.lang.Object
boofcv.alg.geo.PositiveDepthConstraintCheck

public class PositiveDepthConstraintCheck extends 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 Details

    • PositiveDepthConstraintCheck

      public PositiveDepthConstraintCheck(Triangulate2ViewsMetric triangulate)
    • PositiveDepthConstraintCheck

      public PositiveDepthConstraintCheck()
  • Method Details

    • checkConstraint

      public boolean checkConstraint(Point2D_F64 viewA, Point2D_F64 viewB, Se3_F64 fromAtoB)
      Checks to see if a single point meets the constraint.
      Parameters:
      viewA - View of the 3D point from the first camera. Normalized image coordinates.
      viewB - View of the 3D point from the second camera. Normalized image coordinates.
      fromAtoB - Transform from the B to A camera frame.
      Returns:
      If the triangulated point appears in front of both cameras.