Class AssociateStereo2D<Desc extends boofcv.struct.feature.TupleDesc>

  • All Implemented Interfaces:
    boofcv.abst.feature.associate.Associate, boofcv.abst.feature.associate.AssociateDescription2D<Desc>

    public class AssociateStereo2D<Desc extends boofcv.struct.feature.TupleDesc>
    extends StereoConsistencyCheck
    implements boofcv.abst.feature.associate.AssociateDescription2D<Desc>
    Association for a stereo pair where the source is the left camera and the destination is the right camera. Pixel coordinates are rectified and associations are only considered if the two observations are within tolerance of each other along the y-axis and that the left observation's x-coordinate is greater than the right.
    • Constructor Detail

      • AssociateStereo2D

        public AssociateStereo2D​(boofcv.abst.feature.associate.ScoreAssociation<Desc> scorer,
                                 double locationTolerance,
                                 java.lang.Class<Desc> descType)
    • Method Detail

      • setSource

        public void setSource​(org.ddogleg.struct.FastAccess<georegression.struct.point.Point2D_F64> location,
                              org.ddogleg.struct.FastAccess<Desc> descriptions)
        Converts location into rectified coordinates and saved a reference to the description.
        Specified by:
        setSource in interface boofcv.abst.feature.associate.AssociateDescription2D<Desc extends boofcv.struct.feature.TupleDesc>
      • setDestination

        public void setDestination​(org.ddogleg.struct.FastAccess<georegression.struct.point.Point2D_F64> location,
                                   org.ddogleg.struct.FastAccess<Desc> descriptions)
        Converts location into rectified coordinates and saved a reference to the description.
        Specified by:
        setDestination in interface boofcv.abst.feature.associate.AssociateDescription2D<Desc extends boofcv.struct.feature.TupleDesc>
      • associate

        public void associate()
        Specified by:
        associate in interface boofcv.abst.feature.associate.Associate
      • getMatches

        public org.ddogleg.struct.FastQueue<boofcv.struct.feature.AssociatedIndex> getMatches()
        Specified by:
        getMatches in interface boofcv.abst.feature.associate.Associate
      • getUnassociatedSource

        public org.ddogleg.struct.GrowQueue_I32 getUnassociatedSource()
        Specified by:
        getUnassociatedSource in interface boofcv.abst.feature.associate.Associate
      • getUnassociatedDestination

        public org.ddogleg.struct.GrowQueue_I32 getUnassociatedDestination()
        Specified by:
        getUnassociatedDestination in interface boofcv.abst.feature.associate.Associate
      • setMaxScoreThreshold

        public void setMaxScoreThreshold​(double score)
        Specified by:
        setMaxScoreThreshold in interface boofcv.abst.feature.associate.Associate
      • getScoreType

        public boofcv.struct.feature.MatchScoreType getScoreType()
        Specified by:
        getScoreType in interface boofcv.abst.feature.associate.Associate
      • uniqueSource

        public boolean uniqueSource()
        Specified by:
        uniqueSource in interface boofcv.abst.feature.associate.Associate
      • uniqueDestination

        public boolean uniqueDestination()
        Specified by:
        uniqueDestination in interface boofcv.abst.feature.associate.Associate