Class VisualizeFiducial

java.lang.Object
boofcv.gui.fiducial.VisualizeFiducial

public class VisualizeFiducial extends Object
Functions to help with visualizing fiducials.
  • Constructor Details

    • VisualizeFiducial

      public VisualizeFiducial()
  • Method Details

    • drawLabelCenter

      public static void drawLabelCenter(Se3_F64 targetToCamera, CameraPinholeBrown intrinsic, String label, Graphics2D g2, double scale)
      Draws a flat cube to show where the square fiducial is on the image
    • drawLabelCenter

      public static void drawLabelCenter(Se3_F64 targetToCamera, CameraPinholeBrown intrinsic, String label, Graphics2D g2)
    • drawLabel

      public static void drawLabel(Point2D_F64 locationPixel, String label, Graphics2D g2)
    • drawLabel

      public static void drawLabel(Point2D_F64 locationPixel, String label, Graphics2D g2, double scale)
    • drawLabel

      public static void drawLabel(Point2D_F64 locationPixel, String label, Font font, Color cText, Color cBackground, Graphics2D g2, double scale)
    • drawCube

      public static void drawCube(Se3_F64 targetToCamera, CameraPinholeBrown intrinsic, double width, int lineThickness, Graphics2D g2)
    • drawCube

      public static void drawCube(Se3_F64 targetToCamera, CameraPinholeBrown intrinsic, double width, double heightScale, int lineThickness, Graphics2D g2, double scale)
      Draws a flat cube to show where the square fiducial is on the image
    • drawLine

      public static void drawLine(Graphics2D g2, Line2D.Double line, double x0, double y0, double x1, double y1)
    • drawLine

      public static void drawLine(Graphics2D g2, Line2D.Double line, double x0, double y0, double x1, double y1, double scale)
    • drawChessboard

      public static void drawChessboard(Graphics2D g2, WorldToCameraToPixel fiducialToPixel, int numRows, int numCols, double squareWidth)
      Renders a translucent chessboard pattern
      Parameters:
      g2 - Graphics object it's drawn in
      fiducialToPixel - Coverts a coordinate from fiducial into pixel
      numRows - Number of rows in the calibration grid
      numCols - Number of columns in the calibration grid
      squareWidth - Width of each square