Search in sources :

Example 1 with AssociateThreeByPairs

use of boofcv.alg.feature.associate.AssociateThreeByPairs in project BoofCV by lessthanoptimal.

the class ExampleAssociateThreeView method threeViewPairwiseAssociate.

/**
 * BoofCV comes with a class which does all the three view matching for you. Which association and scoring
 * function are used is all configurable.
 */
public DogArray<AssociatedTripleIndex> threeViewPairwiseAssociate() {
    ScoreAssociation<TupleDesc_F64> scorer = FactoryAssociation.scoreEuclidean(TupleDesc_F64.class, true);
    AssociateDescription<TupleDesc_F64> associate = FactoryAssociation.greedy(new ConfigAssociateGreedy(true, 0.1), scorer);
    var associateThree = new AssociateThreeByPairs<>(associate);
    associateThree.initialize(detDesc.getNumberOfSets());
    associateThree.setFeaturesA(features01, featureSet01);
    associateThree.setFeaturesB(features02, featureSet02);
    associateThree.setFeaturesC(features03, featureSet03);
    associateThree.associate();
    return associateThree.getMatches();
}
Also used : TupleDesc_F64(boofcv.struct.feature.TupleDesc_F64) AssociateThreeByPairs(boofcv.alg.feature.associate.AssociateThreeByPairs) ConfigAssociateGreedy(boofcv.factory.feature.associate.ConfigAssociateGreedy)

Aggregations

AssociateThreeByPairs (boofcv.alg.feature.associate.AssociateThreeByPairs)1 ConfigAssociateGreedy (boofcv.factory.feature.associate.ConfigAssociateGreedy)1 TupleDesc_F64 (boofcv.struct.feature.TupleDesc_F64)1