Package boofcv.pdf
Class PdfFiducialEngine
java.lang.Object
boofcv.alg.drawing.FiducialRenderEngine
boofcv.pdf.PdfFiducialEngine
Renders fiducials to PDF documents.
-
Field Summary
Modifier and TypeFieldDescriptionorg.apache.pdfbox.pdmodel.PDDocument
double
double
double
double
org.apache.pdfbox.pdmodel.PDPageContentStream
-
Constructor Summary
ConstructorDescriptionPdfFiducialEngine
(org.apache.pdfbox.pdmodel.PDDocument document, org.apache.pdfbox.pdmodel.PDPageContentStream pcs, double markerWidth, double markerHeight) -
Method Summary
Modifier and TypeMethodDescriptionfloat
adjustX
(double x) float
adjustY
(double y) void
circle
(double cx, double cy, double r) void
void
init()
Init needs to be called for each new fiducial.void
inputToDocument
(double x, double y, Point2D_F64 document) void
rectangle
(double x0, double y0, double x1, double y1) void
setGray
(double value) Sets the gray scale value of the shape.void
square
(double x0, double y0, double width0, double thickness) Methods inherited from class boofcv.alg.drawing.FiducialRenderEngine
rectangleWH, square
-
Field Details
-
document
public org.apache.pdfbox.pdmodel.PDDocument document -
pcs
public org.apache.pdfbox.pdmodel.PDPageContentStream pcs -
offsetX
public double offsetX -
offsetY
public double offsetY -
markerWidth
public double markerWidth -
markerHeight
public double markerHeight -
markerColor
-
-
Constructor Details
-
PdfFiducialEngine
public PdfFiducialEngine(org.apache.pdfbox.pdmodel.PDDocument document, org.apache.pdfbox.pdmodel.PDPageContentStream pcs, double markerWidth, double markerHeight)
-
-
Method Details
-
init
public void init()Description copied from class:FiducialRenderEngine
Init needs to be called for each new fiducial.- Specified by:
init
in classFiducialRenderEngine
-
setGray
public void setGray(double value) Description copied from class:FiducialRenderEngine
Sets the gray scale value of the shape. 0.0 = black. 1.0 = white.- Specified by:
setGray
in classFiducialRenderEngine
-
circle
public void circle(double cx, double cy, double r) - Specified by:
circle
in classFiducialRenderEngine
-
square
public void square(double x0, double y0, double width0, double thickness) - Specified by:
square
in classFiducialRenderEngine
-
rectangle
public void rectangle(double x0, double y0, double x1, double y1) - Specified by:
rectangle
in classFiducialRenderEngine
-
draw
- Specified by:
draw
in classFiducialRenderEngine
-
inputToDocument
- Specified by:
inputToDocument
in classFiducialRenderEngine
-
adjustX
public float adjustX(double x) -
adjustY
public float adjustY(double y)
-