Package boofcv.gui.fiducial
Class VisualizeFiducial
- java.lang.Object
-
- boofcv.gui.fiducial.VisualizeFiducial
-
public class VisualizeFiducial extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description VisualizeFiducial()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voiddrawChessboard(java.awt.Graphics2D g2, boofcv.alg.geo.WorldToCameraToPixel fiducialToPixel, int numRows, int numCols, double squareWidth)Renders a translucent chessboard patternstatic voiddrawCube(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 imagestatic voiddrawCube(georegression.struct.se.Se3_F64 targetToCamera, boofcv.struct.calib.CameraPinholeBrown intrinsic, double width, int lineThickness, java.awt.Graphics2D g2)static voiddrawLabel(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 voiddrawLabel(georegression.struct.point.Point2D_F64 locationPixel, java.lang.String label, java.awt.Graphics2D g2)static voiddrawLabel(georegression.struct.point.Point2D_F64 locationPixel, java.lang.String label, java.awt.Graphics2D g2, double scale)static voiddrawLabelCenter(georegression.struct.se.Se3_F64 targetToCamera, boofcv.struct.calib.CameraPinholeBrown intrinsic, java.lang.String label, java.awt.Graphics2D g2)static voiddrawLabelCenter(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 imagestatic voiddrawLine(java.awt.Graphics2D g2, java.awt.geom.Line2D.Double line, double x0, double y0, double x1, double y1)static voiddrawLine(java.awt.Graphics2D g2, java.awt.geom.Line2D.Double line, double x0, double y0, double x1, double y1, double scale)
-
-
-
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 infiducialToPixel- Coverts a coordinate from fiducial into pixelnumRows- Number of rows in the calibration gridnumCols- Number of columns in the calibration gridsquareWidth- Width of each square
-
-