Search in sources :

Example 16 with GrayU16

use of boofcv.struct.image.GrayU16 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)

Aggregations

GrayU16 (boofcv.struct.image.GrayU16)16 GrayU8 (boofcv.struct.image.GrayU8)12 Test (org.junit.Test)8 Point3D_F64 (georegression.struct.point.Point3D_F64)6 FastQueue (org.ddogleg.struct.FastQueue)5 ConvertBufferedImage (boofcv.io.image.ConvertBufferedImage)4 FastQueueArray_I32 (boofcv.struct.FastQueueArray_I32)4 BufferedImage (java.awt.image.BufferedImage)4 ConfigGeneralDetector (boofcv.abst.feature.detect.interest.ConfigGeneralDetector)3 PkltConfig (boofcv.alg.tracker.klt.PkltConfig)3 CameraPinholeRadial (boofcv.struct.calib.CameraPinholeRadial)3 Planar (boofcv.struct.image.Planar)3 File (java.io.File)3 PointCloudViewer (boofcv.gui.d3.PointCloudViewer)2 VisualDepthParameters (boofcv.struct.calib.VisualDepthParameters)2 Vector3D_F64 (georegression.struct.point.Vector3D_F64)2 Se3_F64 (georegression.struct.se.Se3_F64)2 DMatrixRMaj (org.ejml.data.DMatrixRMaj)2 AccessPointTracks3D (boofcv.abst.sfm.AccessPointTracks3D)1 DoNothingPixelTransform_F32 (boofcv.alg.distort.DoNothingPixelTransform_F32)1