use of boofcv.alg.feature.detect.intensity.DetectorFastNaive in project BoofCV by lessthanoptimal.
the class GenericImplFastIntensity method compareToNaiveDetection.
@Test
public void compareToNaiveDetection() {
GrayU8 input = new GrayU8(40, 50);
GImageMiscOps.fillUniform(input, rand, 0, 50);
GrayF32 intensity = new GrayF32(input.width, input.height);
DetectorFastNaive validator = new DetectorFastNaive(3, minContinuous, detectDifference);
validator.process(input);
alg.process(input, intensity);
assertEquals(validator.getCandidates().size, alg.getCandidates().size);
for (int i = 0; i < validator.getCandidates().size(); i++) {
Point2D_I16 v = validator.getCandidates().get(i);
Point2D_I16 a = alg.getCandidates().get(i);
assertEquals(v.x, a.x);
assertEquals(v.y, a.y);
}
}
Aggregations