Package boofcv.gui.fiducial
Class VisualizeFiducial
java.lang.Object
boofcv.gui.fiducial.VisualizeFiducial
Functions to help with visualizing fiducials.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
drawChessboard
(Graphics2D g2, WorldToCameraToPixel fiducialToPixel, int numRows, int numCols, double squareWidth) Renders a translucent chessboard patternstatic 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 imagestatic void
drawCube
(Se3_F64 targetToCamera, CameraPinholeBrown intrinsic, double width, int lineThickness, Graphics2D g2) static void
drawLabel
(Point2D_F64 locationPixel, String label, Font font, Color cText, Color cBackground, Graphics2D g2, double scale) static void
drawLabel
(Point2D_F64 locationPixel, String label, Graphics2D g2) static void
drawLabel
(Point2D_F64 locationPixel, String label, Graphics2D g2, double scale) static void
drawLabelCenter
(Se3_F64 targetToCamera, CameraPinholeBrown intrinsic, String label, Graphics2D g2) 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 imagestatic void
drawLine
(Graphics2D g2, Line2D.Double line, double x0, double y0, double x1, double y1) static void
drawLine
(Graphics2D g2, Line2D.Double line, double x0, double y0, double x1, double y1, double scale)
-
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
-
drawLabel
-
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 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
-