Search in sources :

Example 6 with Match

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

the class TestTemplateMatching method basicTest_BORDER.

/**
 * Basic detection task with an extraction algorithm that has a border
 */
@Test
public void basicTest_BORDER() {
    expected = new ArrayList<>();
    expected.add(new Match(10, 11, 15));
    expected.add(new Match(16, 15, 18));
    expected.add(new Match(0, 0, 18));
    DummyIntensity intensity = new DummyIntensity(true, 4, 5);
    TemplateMatching alg = new TemplateMatching(intensity);
    alg.setImage(input);
    alg.setTemplate(template, null, 10);
    alg.process();
    checkResults(alg.getResults().toList(), expected, 4, 5);
}
Also used : Match(boofcv.struct.feature.Match) Test(org.junit.Test)

Aggregations

Match (boofcv.struct.feature.Match)6 Test (org.junit.Test)3 GrayF32 (boofcv.struct.image.GrayF32)1 Point2D_I16 (georegression.struct.point.Point2D_I16)1