Search in sources :

Example 6 with SiftScaleSpace

use of boofcv.alg.feature.detect.interest.SiftScaleSpace in project BoofCV by lessthanoptimal.

the class TestOrientationSiftToImage method generic.

/**
 * Tests using generic tests for image orientation
 */
@Test
public void generic() {
    ConfigSiftOrientation config = new ConfigSiftOrientation();
    double pixelRadiusAtRadius1 = config.sigmaEnlarge / BoofDefaults.SIFT_SCALE_TO_RADIUS;
    SiftScaleSpace ss = new SiftScaleSpace(-1, 5, 3, 1.6);
    OrientationHistogramSift<GrayF32> orig = FactoryOrientationAlgs.sift(null, GrayF32.class);
    OrientationSiftToImage<GrayF32> alg = new OrientationSiftToImage<>(orig, ss, GrayF32.class);
    GenericOrientationImageTests tests = new GenericOrientationImageTests();
    tests.setup(angleTol, (int) (pixelRadiusAtRadius1 + 0.5), alg, GrayF32.class);
    tests.performAll();
}
Also used : GenericOrientationImageTests(boofcv.alg.feature.orientation.GenericOrientationImageTests) GrayF32(boofcv.struct.image.GrayF32) SiftScaleSpace(boofcv.alg.feature.detect.interest.SiftScaleSpace) Test(org.junit.Test)

Example 7 with SiftScaleSpace

use of boofcv.alg.feature.detect.interest.SiftScaleSpace in project BoofCV by lessthanoptimal.

the class TestDescribeRegionPoint_SIFT method declare.

private DescribeRegionPoint_SIFT<GrayF32> declare() {
    SiftScaleSpace ss = new SiftScaleSpace(0, 4, 3, 1.6);
    DescribePointSift<GrayF32> desc = FactoryDescribePointAlgs.sift(null, GrayF32.class);
    return new DescribeRegionPoint_SIFT<>(ss, desc, GrayF32.class);
}
Also used : GrayF32(boofcv.struct.image.GrayF32) SiftScaleSpace(boofcv.alg.feature.detect.interest.SiftScaleSpace)

Aggregations

SiftScaleSpace (boofcv.alg.feature.detect.interest.SiftScaleSpace)7 GrayF32 (boofcv.struct.image.GrayF32)6 NonMaxLimiter (boofcv.abst.feature.detect.extract.NonMaxLimiter)3 NonMaxSuppression (boofcv.abst.feature.detect.extract.NonMaxSuppression)3 ConfigSiftScaleSpace (boofcv.abst.feature.describe.ConfigSiftScaleSpace)2 ConfigExtract (boofcv.abst.feature.detect.extract.ConfigExtract)2 DescribePointSift (boofcv.alg.feature.describe.DescribePointSift)2 OrientationHistogramSift (boofcv.alg.feature.orientation.OrientationHistogramSift)2 ConfigSiftDescribe (boofcv.abst.feature.describe.ConfigSiftDescribe)1 ConfigSiftDetector (boofcv.abst.feature.detect.interest.ConfigSiftDetector)1 CompleteSift (boofcv.alg.feature.detdesc.CompleteSift)1 SiftDetector (boofcv.alg.feature.detect.interest.SiftDetector)1 GenericOrientationImageTests (boofcv.alg.feature.orientation.GenericOrientationImageTests)1 ConvertBufferedImage (boofcv.io.image.ConvertBufferedImage)1 BufferedImage (java.awt.image.BufferedImage)1 Test (org.junit.Test)1