Search in sources :

Example 1 with CreateSquareFiducialDocumentImage

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

the class BaseFiducialSquareBorder method createRendererImage.

@Override
protected CreateFiducialDocumentImage createRendererImage(String filename) {
    CreateSquareFiducialDocumentImage ret = new CreateSquareFiducialDocumentImage(filename);
    ret.setBlackBorderFractionalWidth(blackBorderFractionalWidth);
    ret.setWhiteBorder((int) spaceBetween);
    return ret;
}
Also used : CreateSquareFiducialDocumentImage(boofcv.app.fiducials.CreateSquareFiducialDocumentImage)

Example 2 with CreateSquareFiducialDocumentImage

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

the class CreateFiducialSquareBinary method callRenderImage.

@Override
protected void callRenderImage(CreateFiducialDocumentImage renderer) {
    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]);
    }
    ((CreateSquareFiducialDocumentImage) renderer).render(names, numbers, gridWidth);
}
Also used : ArrayList(java.util.ArrayList) DogArray_I64(org.ddogleg.struct.DogArray_I64) CreateSquareFiducialDocumentImage(boofcv.app.fiducials.CreateSquareFiducialDocumentImage)

Aggregations

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