Package boofcv.pdf

Class 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.PDDocument document  
      double markerWidth  
      double offsetX  
      double offsetY  
      org.apache.pdfbox.pdmodel.PDPageContentStream pcs  
    • Constructor Summary

      Constructors 
      Constructor Description
      PdfFiducialEngine​(org.apache.pdfbox.pdmodel.PDDocument document, org.apache.pdfbox.pdmodel.PDPageContentStream pcs, double markerWidth)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      float adjustX​(double x)  
      float adjustY​(double y)  
      void circle​(double cx, double cy, double r)  
      void draw​(boofcv.struct.image.GrayU8 image, double x0, double y0, double x1, double y1)  
      void init()  
      void inputToDocument​(double x, double y, georegression.struct.point.Point2D_F64 document)  
      void rectangle​(double x0, double y0, double x1, double y1)  
      void square​(double x0, double y0, double width0, double thickness)  
      • Methods inherited from class boofcv.alg.drawing.FiducialRenderEngine

        square
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • 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
    • Constructor Detail

      • PdfFiducialEngine

        public PdfFiducialEngine​(org.apache.pdfbox.pdmodel.PDDocument document,
                                 org.apache.pdfbox.pdmodel.PDPageContentStream pcs,
                                 double markerWidth)
    • Method Detail

      • init

        public void init()
        Specified by:
        init in class boofcv.alg.drawing.FiducialRenderEngine
      • circle

        public void circle​(double cx,
                           double cy,
                           double r)
        Specified by:
        circle in class boofcv.alg.drawing.FiducialRenderEngine
      • square

        public void square​(double x0,
                           double y0,
                           double width0,
                           double thickness)
        Specified by:
        square in class boofcv.alg.drawing.FiducialRenderEngine
      • rectangle

        public void rectangle​(double x0,
                              double y0,
                              double x1,
                              double y1)
        Specified by:
        rectangle in class boofcv.alg.drawing.FiducialRenderEngine
      • draw

        public void draw​(boofcv.struct.image.GrayU8 image,
                         double x0,
                         double y0,
                         double x1,
                         double y1)
        Specified by:
        draw in class boofcv.alg.drawing.FiducialRenderEngine
      • inputToDocument

        public void inputToDocument​(double x,
                                    double y,
                                    georegression.struct.point.Point2D_F64 document)
        Specified by:
        inputToDocument in class boofcv.alg.drawing.FiducialRenderEngine
      • adjustX

        public float adjustX​(double x)
      • adjustY

        public float adjustY​(double y)