use of georegression.struct.shapes.Rectangle2D_I32 in project BoofCV by lessthanoptimal.
the class TestTldHelperFunctions method convertRegion_I32_F32.
@Test
void convertRegion_I32_F32() {
Rectangle2D_F64 a = new Rectangle2D_F64();
Rectangle2D_I32 b = new Rectangle2D_I32();
b.setTo(10, 12, 11, 61);
TldHelperFunctions.convertRegion(b, a);
assertEquals(10, a.p0.x, 1e-8);
assertEquals(12, a.p0.y, 1e-8);
assertEquals(11, a.p1.x, 1e-8);
assertEquals(61, a.p1.y, 1e-8);
}
Aggregations