Search in sources :

Example 1 with OrientationImage

use of boofcv.abst.feature.orientation.OrientationImage in project BoofCV by lessthanoptimal.

the class TestDetectDescribeFusion method checkWithOrientation.

@Test
public void checkWithOrientation() {
    final InterestPointDetector<GrayF32> detector = FactoryInterestPoint.fastHessian(null);
    final OrientationImage ori = FactoryOrientationAlgs.nogradient(1.0 / 2.0, 5, GrayF32.class);
    final DescribeRegionPoint<GrayF32, BrightFeature> desc = FactoryDescribeRegionPoint.surfStable(null, GrayF32.class);
    new GenericTestsDetectDescribePoint(true, true, ImageType.single(GrayF32.class), BrightFeature.class) {

        @Override
        public DetectDescribePoint createDetDesc() {
            return new DetectDescribeFusion(detector, ori, desc);
        }
    }.allTests();
}
Also used : OrientationImage(boofcv.abst.feature.orientation.OrientationImage) BrightFeature(boofcv.struct.feature.BrightFeature) GrayF32(boofcv.struct.image.GrayF32) Test(org.junit.Test)

Example 2 with OrientationImage

use of boofcv.abst.feature.orientation.OrientationImage in project BoofCV by lessthanoptimal.

the class TestDetectDescribeMultiFusion method checkWithOrientation.

@Test
public void checkWithOrientation() {
    final InterestPointDetector<GrayF32> detector = FactoryInterestPoint.fastHessian(null);
    final OrientationImage ori = FactoryOrientationAlgs.nogradient(5, 5, GrayF32.class);
    final DescribeRegionPoint<GrayF32, BrightFeature> desc = FactoryDescribeRegionPoint.surfStable(null, GrayF32.class);
    new GenericTestsDetectDescribeMulti(GrayF32.class, BrightFeature.class) {

        @Override
        public DetectDescribeMulti createDetDesc() {
            DetectDescribePoint ddp = new DetectDescribeFusion(detector, ori, desc);
            return new DetectDescribeSingleToMulti(ddp);
        }
    }.allTests();
}
Also used : OrientationImage(boofcv.abst.feature.orientation.OrientationImage) BrightFeature(boofcv.struct.feature.BrightFeature) GrayF32(boofcv.struct.image.GrayF32) Test(org.junit.Test)

Aggregations

OrientationImage (boofcv.abst.feature.orientation.OrientationImage)2 BrightFeature (boofcv.struct.feature.BrightFeature)2 GrayF32 (boofcv.struct.image.GrayF32)2 Test (org.junit.Test)2