use of georegression.struct.point.Point2D_I16 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);
}
}
use of georegression.struct.point.Point2D_I16 in project BoofCV by lessthanoptimal.
the class TestQueueCorner method add_get.
/**
* Tests add() and get()
*/
@Test
public void add_get() {
QueueCorner queue = new QueueCorner(20);
assertEquals(0, queue.size());
queue.add(1, 2);
assertEquals(1, queue.size());
Point2D_I16 pt = queue.get(0);
assertEquals(1, pt.getX());
assertEquals(2, pt.getY());
}
Aggregations