Search in sources :

Example 16 with PkltConfig

use of boofcv.alg.tracker.klt.PkltConfig in project BoofCV by lessthanoptimal.

the class TestMonoMotion2D_to_MonocularPlaneVisualOdometry method createAlgorithm.

protected MonocularPlaneVisualOdometry<GrayU8> createAlgorithm() {
    PkltConfig config = new PkltConfig();
    config.pyramidScaling = new int[] { 1, 2, 4, 8 };
    config.templateRadius = 3;
    ConfigGeneralDetector configDetector = new ConfigGeneralDetector(600, 3, 1);
    PointTracker<GrayU8> tracker = FactoryPointTracker.klt(config, configDetector, GrayU8.class, GrayS16.class);
    return FactoryVisualOdometry.monoPlaneInfinity(50, 2, 1.5, 300, tracker, ImageType.single(GrayU8.class));
}
Also used : PkltConfig(boofcv.alg.tracker.klt.PkltConfig) ConfigGeneralDetector(boofcv.abst.feature.detect.interest.ConfigGeneralDetector) GrayU8(boofcv.struct.image.GrayU8)

Example 17 with PkltConfig

use of boofcv.alg.tracker.klt.PkltConfig in project BoofCV by lessthanoptimal.

the class TestVisOdomPixelDepthPnP_to_DepthVisualOdometry method createAlgorithm.

protected DepthVisualOdometry<GrayU8, GrayU16> createAlgorithm() {
    PkltConfig config = new PkltConfig();
    config.pyramidScaling = new int[] { 1, 2, 4, 8 };
    config.templateRadius = 3;
    ConfigGeneralDetector configDetector = new ConfigGeneralDetector(600, 3, 1);
    PointTrackerTwoPass<GrayU8> tracker = FactoryPointTrackerTwoPass.klt(config, configDetector, GrayU8.class, GrayS16.class);
    DepthSparse3D<GrayU16> sparseDepth = new DepthSparse3D.I<>(depthUnits);
    return FactoryVisualOdometry.depthDepthPnP(1.5, 120, 2, 200, 50, false, sparseDepth, tracker, GrayU8.class, GrayU16.class);
}
Also used : GrayU16(boofcv.struct.image.GrayU16) PkltConfig(boofcv.alg.tracker.klt.PkltConfig) ConfigGeneralDetector(boofcv.abst.feature.detect.interest.ConfigGeneralDetector) GrayU8(boofcv.struct.image.GrayU8)

Example 18 with PkltConfig

use of boofcv.alg.tracker.klt.PkltConfig in project BoofCV by lessthanoptimal.

the class TestWrapVisOdomDualTrackPnP method createAlgorithm.

@Override
public StereoVisualOdometry<GrayF32> createAlgorithm() {
    ConfigGeneralDetector configDetector = new ConfigGeneralDetector(600, 2, 1);
    PkltConfig kltConfig = new PkltConfig();
    kltConfig.templateRadius = 3;
    kltConfig.pyramidScaling = new int[] { 1, 2, 4, 8 };
    PointTracker<GrayF32> trackerLeft = FactoryPointTracker.klt(kltConfig, configDetector, GrayF32.class, GrayF32.class);
    PointTracker<GrayF32> trackerRight = FactoryPointTracker.klt(kltConfig, configDetector, GrayF32.class, GrayF32.class);
    DescribeRegionPoint describe = FactoryDescribeRegionPoint.surfFast(null, GrayF32.class);
    return FactoryVisualOdometry.stereoDualTrackerPnP(90, 2, 1.5, 1.5, 200, 50, trackerLeft, trackerRight, describe, GrayF32.class);
}
Also used : GrayF32(boofcv.struct.image.GrayF32) PkltConfig(boofcv.alg.tracker.klt.PkltConfig) DescribeRegionPoint(boofcv.abst.feature.describe.DescribeRegionPoint) FactoryDescribeRegionPoint(boofcv.factory.feature.describe.FactoryDescribeRegionPoint) ConfigGeneralDetector(boofcv.abst.feature.detect.interest.ConfigGeneralDetector)

Aggregations

PkltConfig (boofcv.alg.tracker.klt.PkltConfig)18 ConfigGeneralDetector (boofcv.abst.feature.detect.interest.ConfigGeneralDetector)16 GrayU8 (boofcv.struct.image.GrayU8)7 Vector3D_F64 (georegression.struct.point.Vector3D_F64)4 Se3_F64 (georegression.struct.se.Se3_F64)4 DescribeRegionPoint (boofcv.abst.feature.describe.DescribeRegionPoint)3 PointTracker (boofcv.abst.feature.tracker.PointTracker)3 FactoryDescribeRegionPoint (boofcv.factory.feature.describe.FactoryDescribeRegionPoint)3 FactoryPointTracker (boofcv.factory.feature.tracker.FactoryPointTracker)3 MediaManager (boofcv.io.MediaManager)3 DefaultMediaManager (boofcv.io.wrapper.DefaultMediaManager)3 GrayF32 (boofcv.struct.image.GrayF32)3 GrayU16 (boofcv.struct.image.GrayU16)3 BufferedImage (java.awt.image.BufferedImage)3 AssociateDescription2D (boofcv.abst.feature.associate.AssociateDescription2D)2 ScoreAssociateHamming_B (boofcv.abst.feature.associate.ScoreAssociateHamming_B)2 PointTrack (boofcv.abst.feature.tracker.PointTrack)2 PointTrackerToTwoPass (boofcv.abst.feature.tracker.PointTrackerToTwoPass)2 PointTrackerTwoPass (boofcv.abst.feature.tracker.PointTrackerTwoPass)2 GeneralFeatureDetector (boofcv.alg.feature.detect.interest.GeneralFeatureDetector)2