Search in sources :

Example 1 with DetectDescribeFusion

use of boofcv.abst.feature.detdesc.DetectDescribeFusion in project BoofCV by lessthanoptimal.

the class TestDdaManagerDetectDescribePoint method createTracker.

@Override
public PointTracker<GrayF32> createTracker() {
    DescribePointBrief<GrayF32> brief = FactoryDescribePointAlgs.brief(FactoryBriefDefinition.gaussian2(new Random(123), 16, 512), FactoryBlurFilter.gaussian(ImageType.single(GrayF32.class), 0, 4));
    GeneralFeatureDetector<GrayF32, GrayF32> corner = FactoryDetectPoint.createShiTomasi(new ConfigGeneralDetector(100, 2, 0, 0, true), false, GrayF32.class);
    InterestPointDetector<GrayF32> detector = FactoryInterestPoint.wrapPoint(corner, 1, GrayF32.class, GrayF32.class);
    ScoreAssociateHamming_B score = new ScoreAssociateHamming_B();
    AssociateDescription2D<TupleDesc_B> association = new AssociateDescTo2D<>(FactoryAssociation.greedy(score, 400, true));
    DetectDescribeFusion<GrayF32, TupleDesc_B> fused = new DetectDescribeFusion<>(detector, null, new WrapDescribeBrief<>(brief, GrayF32.class));
    DdaManagerDetectDescribePoint<GrayF32, TupleDesc_B> manager;
    manager = new DdaManagerDetectDescribePoint<>(fused);
    DetectDescribeAssociate<GrayF32, TupleDesc_B> tracker = new DetectDescribeAssociate<>(manager, association, false);
    return tracker;
}
Also used : ConfigGeneralDetector(boofcv.abst.feature.detect.interest.ConfigGeneralDetector) AssociateDescTo2D(boofcv.abst.feature.associate.AssociateDescTo2D) ScoreAssociateHamming_B(boofcv.abst.feature.associate.ScoreAssociateHamming_B) TupleDesc_B(boofcv.struct.feature.TupleDesc_B) GrayF32(boofcv.struct.image.GrayF32) Random(java.util.Random) DetectDescribeFusion(boofcv.abst.feature.detdesc.DetectDescribeFusion)

Aggregations

AssociateDescTo2D (boofcv.abst.feature.associate.AssociateDescTo2D)1 ScoreAssociateHamming_B (boofcv.abst.feature.associate.ScoreAssociateHamming_B)1 DetectDescribeFusion (boofcv.abst.feature.detdesc.DetectDescribeFusion)1 ConfigGeneralDetector (boofcv.abst.feature.detect.interest.ConfigGeneralDetector)1 TupleDesc_B (boofcv.struct.feature.TupleDesc_B)1 GrayF32 (boofcv.struct.image.GrayF32)1 Random (java.util.Random)1