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();
}
Aggregations