Search in sources :

Example 1 with CreateSquareFiducialDocumentPDF

use of boofcv.app.fiducials.CreateSquareFiducialDocumentPDF in project BoofCV by lessthanoptimal.

the class CreateFiducialSquareBinary method callRenderPdf.

@Override
protected void callRenderPdf(CreateFiducialDocumentPDF renderer) throws IOException {
    List<String> names = new ArrayList<>();
    DogArray_I64 numbers = new DogArray_I64();
    for (int i = 0; i < this.numbers.length; i++) {
        names.add(this.numbers[i].toString());
        numbers.add(this.numbers[i]);
    }
    ((CreateSquareFiducialDocumentPDF) renderer).render(names, numbers, gridWidth);
}
Also used : ArrayList(java.util.ArrayList) DogArray_I64(org.ddogleg.struct.DogArray_I64) CreateSquareFiducialDocumentPDF(boofcv.app.fiducials.CreateSquareFiducialDocumentPDF)

Example 2 with CreateSquareFiducialDocumentPDF

use of boofcv.app.fiducials.CreateSquareFiducialDocumentPDF in project BoofCV by lessthanoptimal.

the class BaseFiducialSquareBorder method createRendererPdf.

@Override
protected CreateFiducialDocumentPDF createRendererPdf(String documentName, PaperSize paper, Unit units) {
    CreateSquareFiducialDocumentPDF ret = new CreateSquareFiducialDocumentPDF(documentName, paper, units);
    ret.blackBorderFractionalWidth = blackBorderFractionalWidth;
    return ret;
}
Also used : CreateSquareFiducialDocumentPDF(boofcv.app.fiducials.CreateSquareFiducialDocumentPDF)

Aggregations

CreateSquareFiducialDocumentPDF (boofcv.app.fiducials.CreateSquareFiducialDocumentPDF)2 ArrayList (java.util.ArrayList)1 DogArray_I64 (org.ddogleg.struct.DogArray_I64)1