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);
}
Aggregations