Package boofcv.alg.feature.associate
Class AssociateStereo2D<Desc extends boofcv.struct.feature.TupleDesc>
- java.lang.Object
-
- boofcv.alg.feature.associate.StereoConsistencyCheck
-
- boofcv.alg.feature.associate.AssociateStereo2D<Desc>
-
- 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.
-
-
Field Summary
-
Fields inherited from class boofcv.alg.feature.associate.StereoConsistencyCheck
leftImageToRect, rightImageToRect
-
-
Constructor Summary
Constructors Constructor Description AssociateStereo2D(boofcv.abst.feature.associate.ScoreAssociation<Desc> scorer, double locationTolerance, java.lang.Class<Desc> descType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidassociate()org.ddogleg.struct.FastQueue<boofcv.struct.feature.AssociatedIndex>getMatches()boofcv.struct.feature.MatchScoreTypegetScoreType()org.ddogleg.struct.GrowQueue_I32getUnassociatedDestination()org.ddogleg.struct.GrowQueue_I32getUnassociatedSource()voidsetDestination(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.voidsetMaxScoreThreshold(double score)voidsetSource(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.booleanuniqueDestination()booleanuniqueSource()-
Methods inherited from class boofcv.alg.feature.associate.StereoConsistencyCheck
checkPixel, checkRectified, setCalibration
-
-
-
-
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:
setSourcein interfaceboofcv.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:
setDestinationin interfaceboofcv.abst.feature.associate.AssociateDescription2D<Desc extends boofcv.struct.feature.TupleDesc>
-
associate
public void associate()
- Specified by:
associatein interfaceboofcv.abst.feature.associate.Associate
-
getMatches
public org.ddogleg.struct.FastQueue<boofcv.struct.feature.AssociatedIndex> getMatches()
- Specified by:
getMatchesin interfaceboofcv.abst.feature.associate.Associate
-
getUnassociatedSource
public org.ddogleg.struct.GrowQueue_I32 getUnassociatedSource()
- Specified by:
getUnassociatedSourcein interfaceboofcv.abst.feature.associate.Associate
-
getUnassociatedDestination
public org.ddogleg.struct.GrowQueue_I32 getUnassociatedDestination()
- Specified by:
getUnassociatedDestinationin interfaceboofcv.abst.feature.associate.Associate
-
setMaxScoreThreshold
public void setMaxScoreThreshold(double score)
- Specified by:
setMaxScoreThresholdin interfaceboofcv.abst.feature.associate.Associate
-
getScoreType
public boofcv.struct.feature.MatchScoreType getScoreType()
- Specified by:
getScoreTypein interfaceboofcv.abst.feature.associate.Associate
-
uniqueSource
public boolean uniqueSource()
- Specified by:
uniqueSourcein interfaceboofcv.abst.feature.associate.Associate
-
uniqueDestination
public boolean uniqueDestination()
- Specified by:
uniqueDestinationin interfaceboofcv.abst.feature.associate.Associate
-
-