Class FiducialImageEngine

java.lang.Object
boofcv.alg.drawing.FiducialRenderEngine
boofcv.alg.drawing.FiducialImageEngine

public class FiducialImageEngine extends FiducialRenderEngine
Rendering engine for fiducials into a gray scale image.
  • Field Details

    • gray

      protected GrayU8 gray
  • Constructor Details

    • FiducialImageEngine

      public FiducialImageEngine()
  • Method Details

    • configure

      public void configure(int borderPixels, int markerPixels)
      Specifies image size and the border.
      Parameters:
      borderPixels - size of white border around document
      markerPixels - size of workable region inside the document
    • configure

      public void configure(int borderPixels, int markerWidth, int markerHeight)
    • init

      public void init()
      Description copied from class: FiducialRenderEngine
      Init needs to be called for each new fiducial.
      Specified by:
      init in class FiducialRenderEngine
    • 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 class FiducialRenderEngine
    • circle

      public void circle(double cx, double cy, double radius)
      Specified by:
      circle in class FiducialRenderEngine
    • rectangle

      public void rectangle(double x0, double y0, double x1, double y1)
      Specified by:
      rectangle in class FiducialRenderEngine
    • square

      public void square(double x0, double y0, double width0, double thickness)
      Specified by:
      square in class FiducialRenderEngine
    • draw

      public void draw(GrayU8 image, double x0, double y0, double x1, double y1)
      Specified by:
      draw in class FiducialRenderEngine
    • inputToDocument

      public void inputToDocument(double x, double y, Point2D_F64 document)
      Specified by:
      inputToDocument in class FiducialRenderEngine
    • getBorderPixels

      public int getBorderPixels()
    • getGray

      public GrayU8 getGray()
    • getGrayF32

      public GrayF32 getGrayF32()
    • getWhite

      public int getWhite()
    • setWhite

      public void setWhite(int white)
    • getBlack

      public int getBlack()
    • setBlack

      public void setBlack(int black)