Package boofcv.gui
Class FiducialRenderEngineGraphics2D
java.lang.Object
boofcv.alg.drawing.FiducialRenderEngine
boofcv.gui.FiducialRenderEngineGraphics2D
Implementation of
FiducialRenderEngine
for a BufferedImage
.-
Field Summary
Modifier and TypeFieldDescriptionprotected Ellipse2D.Double
protected Graphics2D
protected BufferedImage
protected Rectangle2D.Double
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
circle
(double cx, double cy, double radius) void
configure
(int borderPixelsX, int borderPixelsY, int markerWidth, int markerHeight) void
void
init()
Init needs to be called for each new fiducial.void
inputToDocument
(double x, double y, Point2D_F64 document) void
rectangle
(double x0, double y0, double x1, double y1) void
setGray
(double value) Sets the gray scale value of the shape.void
square
(double x0, double y0, double width, double thickness) Methods inherited from class boofcv.alg.drawing.FiducialRenderEngine
rectangleWH, square
-
Field Details
-
image
-
g2
-
ellipse
-
rect
-
-
Constructor Details
-
FiducialRenderEngineGraphics2D
public FiducialRenderEngineGraphics2D()
-
-
Method Details
-
configure
public void configure(int borderPixelsX, int borderPixelsY, 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 classFiducialRenderEngine
-
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 classFiducialRenderEngine
-
circle
public void circle(double cx, double cy, double radius) - Specified by:
circle
in classFiducialRenderEngine
-
rectangle
public void rectangle(double x0, double y0, double x1, double y1) - Specified by:
rectangle
in classFiducialRenderEngine
-
square
public void square(double x0, double y0, double width, double thickness) - Specified by:
square
in classFiducialRenderEngine
-
draw
- Specified by:
draw
in classFiducialRenderEngine
-
inputToDocument
- Specified by:
inputToDocument
in classFiducialRenderEngine
-
getGrayU8
-
getGrayF32
-