Search in sources :

Example 6 with InterleavedF32

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());
}
Also used : InterleavedF32(boofcv.struct.image.InterleavedF32) Test(org.junit.Test)

Aggregations

InterleavedF32 (boofcv.struct.image.InterleavedF32)6 Test (org.junit.Test)4 GrayF32 (boofcv.struct.image.GrayF32)3 ListDisplayPanel (boofcv.gui.ListDisplayPanel)1 ConvertBufferedImage (boofcv.io.image.ConvertBufferedImage)1 BufferedImage (java.awt.image.BufferedImage)1