use of boofcv.alg.feature.describe.DescribePointPixelRegionNCC in project BoofCV by lessthanoptimal.
the class TestTldTemplateMatching method computeNccDescriptor.
@Test
public void computeNccDescriptor() {
TldTemplateMatching alg = new TldTemplateMatching(interpolate);
alg.setImage(input);
NccFeature found = alg.createDescriptor();
alg.computeNccDescriptor(found, 2, 3, 17, 18);
NccFeature expected = alg.createDescriptor();
DescribePointPixelRegionNCC descriptor = FactoryDescribePointAlgs.pixelRegionNCC(15, 15, GrayU8.class);
descriptor.setImage(input);
descriptor.process(7 + 2, 7 + 3, expected);
assertEquals(expected.mean, found.mean, 1e-8);
}
Aggregations