use of boofcv.struct.image.InterleavedF32 in project BoofCV by lessthanoptimal.
the class TestImageDistortBasic_IL method applyRenderAll_False.
@Test
public void applyRenderAll_False() {
Helper alg = new Helper(interp);
alg.setRenderAll(false);
offX = offY = 0;
alg.reset();
alg.setModel(tran);
alg.apply(new InterleavedF32(10, 15, NUM_BANDS), new InterleavedF32(10, 15, NUM_BANDS));
assertEquals(150, alg.getTotal());
offX = offY = 0.1f;
alg.reset();
alg.setModel(tran);
alg.apply(new InterleavedF32(10, 15, NUM_BANDS), new InterleavedF32(10, 15, NUM_BANDS));
assertEquals(9 * 14, alg.getTotal());
offX = offY = -0.1f;
alg.reset();
alg.setModel(tran);
alg.apply(new InterleavedF32(10, 15, NUM_BANDS), new InterleavedF32(10, 15, NUM_BANDS));
assertEquals(9 * 14, alg.getTotal());
}
Aggregations