Package boofcv.pdf
Class PdfFiducialEngine
java.lang.Object
boofcv.alg.drawing.FiducialRenderEngine
boofcv.pdf.PdfFiducialEngine
public class PdfFiducialEngine
extends boofcv.alg.drawing.FiducialRenderEngine
Renders fiducials to PDF documents.
-
Field Summary
Fields Modifier and Type Field Description org.apache.pdfbox.pdmodel.PDDocumentdocumentColormarkerColordoublemarkerHeightdoublemarkerWidthdoubleoffsetXdoubleoffsetYorg.apache.pdfbox.pdmodel.PDPageContentStreampcs -
Constructor Summary
Constructors Constructor Description PdfFiducialEngine(org.apache.pdfbox.pdmodel.PDDocument document, org.apache.pdfbox.pdmodel.PDPageContentStream pcs, double markerWidth, double markerHeight) -
Method Summary
Modifier and Type Method Description floatadjustX(double x)floatadjustY(double y)voidcircle(double cx, double cy, double r)voiddraw(boofcv.struct.image.GrayU8 image, double x0, double y0, double x1, double y1)voidinit()voidinputToDocument(double x, double y, Point2D_F64 document)voidrectangle(double x0, double y0, double x1, double y1)voidsetGray(double value)voidsquare(double x0, double y0, double width0, double thickness)Methods inherited from class boofcv.alg.drawing.FiducialRenderEngine
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()- Specified by:
initin classboofcv.alg.drawing.FiducialRenderEngine
-
setGray
public void setGray(double value)- Specified by:
setGrayin classboofcv.alg.drawing.FiducialRenderEngine
-
circle
public void circle(double cx, double cy, double r)- Specified by:
circlein classboofcv.alg.drawing.FiducialRenderEngine
-
square
public void square(double x0, double y0, double width0, double thickness)- Specified by:
squarein classboofcv.alg.drawing.FiducialRenderEngine
-
rectangle
public void rectangle(double x0, double y0, double x1, double y1)- Specified by:
rectanglein classboofcv.alg.drawing.FiducialRenderEngine
-
draw
public void draw(boofcv.struct.image.GrayU8 image, double x0, double y0, double x1, double y1)- Specified by:
drawin classboofcv.alg.drawing.FiducialRenderEngine
-
inputToDocument
- Specified by:
inputToDocumentin classboofcv.alg.drawing.FiducialRenderEngine
-
adjustX
public float adjustX(double x) -
adjustY
public float adjustY(double y)
-