Class VisualizeFiducial


  • public class VisualizeFiducial
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void drawChessboard​(java.awt.Graphics2D g2, boofcv.alg.geo.WorldToCameraToPixel fiducialToPixel, int numRows, int numCols, double squareWidth)
      Renders a translucent chessboard pattern
      static void drawCube​(georegression.struct.se.Se3_F64 targetToCamera, boofcv.struct.calib.CameraPinholeBrown intrinsic, double width, double heightScale, int lineThickness, java.awt.Graphics2D g2, double scale)
      Draws a flat cube to show where the square fiducial is on the image
      static void drawCube​(georegression.struct.se.Se3_F64 targetToCamera, boofcv.struct.calib.CameraPinholeBrown intrinsic, double width, int lineThickness, java.awt.Graphics2D g2)  
      static void drawLabel​(georegression.struct.point.Point2D_F64 locationPixel, java.lang.String label, java.awt.Font font, java.awt.Color cText, java.awt.Color cBackground, java.awt.Graphics2D g2, double scale)  
      static void drawLabel​(georegression.struct.point.Point2D_F64 locationPixel, java.lang.String label, java.awt.Graphics2D g2)  
      static void drawLabel​(georegression.struct.point.Point2D_F64 locationPixel, java.lang.String label, java.awt.Graphics2D g2, double scale)  
      static void drawLabelCenter​(georegression.struct.se.Se3_F64 targetToCamera, boofcv.struct.calib.CameraPinholeBrown intrinsic, java.lang.String label, java.awt.Graphics2D g2)  
      static void drawLabelCenter​(georegression.struct.se.Se3_F64 targetToCamera, boofcv.struct.calib.CameraPinholeBrown intrinsic, java.lang.String label, java.awt.Graphics2D g2, double scale)
      Draws a flat cube to show where the square fiducial is on the image
      static void drawLine​(java.awt.Graphics2D g2, java.awt.geom.Line2D.Double line, double x0, double y0, double x1, double y1)  
      static void drawLine​(java.awt.Graphics2D g2, java.awt.geom.Line2D.Double line, double x0, double y0, double x1, double y1, double scale)  
      • Methods inherited from class java.lang.Object

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

      • VisualizeFiducial

        public VisualizeFiducial()
    • Method Detail

      • drawLabelCenter

        public static void drawLabelCenter​(georegression.struct.se.Se3_F64 targetToCamera,
                                           boofcv.struct.calib.CameraPinholeBrown intrinsic,
                                           java.lang.String label,
                                           java.awt.Graphics2D g2,
                                           double scale)
        Draws a flat cube to show where the square fiducial is on the image
      • drawLabelCenter

        public static void drawLabelCenter​(georegression.struct.se.Se3_F64 targetToCamera,
                                           boofcv.struct.calib.CameraPinholeBrown intrinsic,
                                           java.lang.String label,
                                           java.awt.Graphics2D g2)
      • drawLabel

        public static void drawLabel​(georegression.struct.point.Point2D_F64 locationPixel,
                                     java.lang.String label,
                                     java.awt.Graphics2D g2)
      • drawLabel

        public static void drawLabel​(georegression.struct.point.Point2D_F64 locationPixel,
                                     java.lang.String label,
                                     java.awt.Graphics2D g2,
                                     double scale)
      • drawLabel

        public static void drawLabel​(georegression.struct.point.Point2D_F64 locationPixel,
                                     java.lang.String label,
                                     java.awt.Font font,
                                     java.awt.Color cText,
                                     java.awt.Color cBackground,
                                     java.awt.Graphics2D g2,
                                     double scale)
      • drawCube

        public static void drawCube​(georegression.struct.se.Se3_F64 targetToCamera,
                                    boofcv.struct.calib.CameraPinholeBrown intrinsic,
                                    double width,
                                    int lineThickness,
                                    java.awt.Graphics2D g2)
      • drawCube

        public static void drawCube​(georegression.struct.se.Se3_F64 targetToCamera,
                                    boofcv.struct.calib.CameraPinholeBrown intrinsic,
                                    double width,
                                    double heightScale,
                                    int lineThickness,
                                    java.awt.Graphics2D g2,
                                    double scale)
        Draws a flat cube to show where the square fiducial is on the image
      • drawLine

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

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

        public static void drawChessboard​(java.awt.Graphics2D g2,
                                          boofcv.alg.geo.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