Package boofcv.alg.feature.associate
Class AssociateGreedyBase2D<D>
java.lang.Object
boofcv.alg.feature.associate.AssociateGreedyBase<D>
boofcv.alg.feature.associate.AssociateGreedyBase2D<D>
- Direct Known Subclasses:
AssociateGreedyBruteForce2D
,AssociateGreedyBruteForce2D_MT
Base class for associating image features using descriptions and 2D distance cropping. Distance is computed
using
AssociateImageDistanceFunction
interface.-
Field Summary
Modifier and TypeFieldDescriptionprotected FastAccess<D>
protected FastAccess<D>
protected AssociateImageDistanceFunction
protected GrowArray<AssociateImageDistanceFunction>
protected FastAccess<Point2D_F64>
protected FastAccess<Point2D_F64>
final ConfigLength
Maximum allowed distance between two points.protected double
-
Constructor Summary
ModifierConstructorDescriptionprotected
AssociateGreedyBase2D
(ScoreAssociation<D> scoreAssociation, AssociateImageDistanceFunction distanceFunction) Specifies score mechanism -
Method Summary
Modifier and TypeMethodDescriptionabstract void
Performs association by computing a 2D score matrix and discarding matches which fail max distance check.void
init
(int imageWidth, int imageHeight) Initializes data structures.void
setDestination
(FastAccess<Point2D_F64> location, FastAccess<D> descriptions) void
setSource
(FastAccess<Point2D_F64> location, FastAccess<D> descriptions) Methods inherited from class boofcv.alg.feature.associate.AssociateGreedyBase
forwardsBackwards, setMaxFitError, setupForAssociate
-
Field Details
-
distances
-
distanceFunction
-
maxDistanceLength
Maximum allowed distance between two points. If relative then it will be based on max(width,height). Inclusive . -
maxDistanceUnits
protected double maxDistanceUnits -
locationSrc
-
descSrc
-
locationDst
-
descDst
-
-
Constructor Details
-
AssociateGreedyBase2D
protected AssociateGreedyBase2D(ScoreAssociation<D> scoreAssociation, AssociateImageDistanceFunction distanceFunction) Specifies score mechanism- Parameters:
scoreAssociation
- How features are scored.
-
-
Method Details
-
init
public void init(int imageWidth, int imageHeight) Initializes data structures. Must call beforeassociate()
- Parameters:
imageWidth
- Width of input imageimageHeight
- Height of input image
-
setSource
-
setDestination
-
associate
public abstract void associate()Performs association by computing a 2D score matrix and discarding matches which fail max distance check. SeeAssociateGreedyBase
for a full description.
-