Search in sources :

Example 1 with SurfFeatureQueue

use of boofcv.struct.feature.SurfFeatureQueue in project BoofCV by lessthanoptimal.

the class ExampleMultiviewSceneReconstruction method detectImageFeatures.

/**
 * Detect image features in all the images.  Save location, description, and color
 */
private void detectImageFeatures(List<BufferedImage> colorImages) {
    System.out.println("Detecting Features in each image.  Total " + colorImages.size());
    for (int i = 0; i < colorImages.size(); i++) {
        System.out.print("*");
        BufferedImage colorImage = colorImages.get(i);
        FastQueue<BrightFeature> features = new SurfFeatureQueue(64);
        FastQueue<Point2D_F64> pixels = new FastQueue<>(Point2D_F64.class, true);
        GrowQueue_I32 colors = new GrowQueue_I32();
        detectFeatures(colorImage, features, pixels, colors);
        imageVisualFeatures.add(features);
        imagePixels.add(pixels);
        imageColors.add(colors);
    }
    System.out.println();
}
Also used : BrightFeature(boofcv.struct.feature.BrightFeature) SurfFeatureQueue(boofcv.struct.feature.SurfFeatureQueue) Point2D_F64(georegression.struct.point.Point2D_F64) FastQueue(org.ddogleg.struct.FastQueue) DetectDescribePoint(boofcv.abst.feature.detdesc.DetectDescribePoint) BufferedImage(java.awt.image.BufferedImage) ConvertBufferedImage(boofcv.io.image.ConvertBufferedImage) GrowQueue_I32(org.ddogleg.struct.GrowQueue_I32)

Aggregations

DetectDescribePoint (boofcv.abst.feature.detdesc.DetectDescribePoint)1 ConvertBufferedImage (boofcv.io.image.ConvertBufferedImage)1 BrightFeature (boofcv.struct.feature.BrightFeature)1 SurfFeatureQueue (boofcv.struct.feature.SurfFeatureQueue)1 Point2D_F64 (georegression.struct.point.Point2D_F64)1 BufferedImage (java.awt.image.BufferedImage)1 FastQueue (org.ddogleg.struct.FastQueue)1 GrowQueue_I32 (org.ddogleg.struct.GrowQueue_I32)1