use of boofcv.abst.fiducial.calib.CalibrationDetectorSquareGrid in project BoofCV by lessthanoptimal.
the class TestCreateCalibrationTarget method square_grid.
@Test
void square_grid() throws IOException {
createDocument("-r 4 -c 3 -o target -t SQUARE_GRID -u cm -w 3 -s 3 -p LETTER\n");
BufferedImage image = loadPDF();
GrayF32 gray = new GrayF32(image.getWidth(), image.getHeight());
ConvertBufferedImage.convertFrom(image, gray);
CalibrationDetectorSquareGrid detector = FactoryFiducialCalibration.squareGrid(null, new ConfigGridDimen(4, 3, 3, 3));
assertTrue(detector.process(gray));
}
Aggregations