Search in sources :

Example 26 with ConfigGeneralDetector

use of boofcv.abst.feature.detect.interest.ConfigGeneralDetector 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 27 with ConfigGeneralDetector

use of boofcv.abst.feature.detect.interest.ConfigGeneralDetector 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 28 with ConfigGeneralDetector

use of boofcv.abst.feature.detect.interest.ConfigGeneralDetector 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

ConfigGeneralDetector (boofcv.abst.feature.detect.interest.ConfigGeneralDetector)28 PkltConfig (boofcv.alg.tracker.klt.PkltConfig)16 GrayF32 (boofcv.struct.image.GrayF32)10 GrayU8 (boofcv.struct.image.GrayU8)8 ScoreAssociateHamming_B (boofcv.abst.feature.associate.ScoreAssociateHamming_B)6 MediaManager (boofcv.io.MediaManager)6 DefaultMediaManager (boofcv.io.wrapper.DefaultMediaManager)6 BufferedImage (java.awt.image.BufferedImage)6 ConvertBufferedImage (boofcv.io.image.ConvertBufferedImage)5 DescribeRegionPoint (boofcv.abst.feature.describe.DescribeRegionPoint)4 PointTracker (boofcv.abst.feature.tracker.PointTracker)4 GeneralFeatureDetector (boofcv.alg.feature.detect.interest.GeneralFeatureDetector)4 FactoryPointTracker (boofcv.factory.feature.tracker.FactoryPointTracker)4 FactoryDescribeRegionPoint (boofcv.factory.feature.describe.FactoryDescribeRegionPoint)3 ImageGridPanel (boofcv.gui.image.ImageGridPanel)3 TupleDesc_B (boofcv.struct.feature.TupleDesc_B)3 Planar (boofcv.struct.image.Planar)3 Homography2D_F64 (georegression.struct.homography.Homography2D_F64)3 Vector3D_F64 (georegression.struct.point.Vector3D_F64)3 Se3_F64 (georegression.struct.se.Se3_F64)3