Package boofcv.alg.drawing
Class FiducialImageEngine
java.lang.Object
boofcv.alg.drawing.FiducialRenderEngine
boofcv.alg.drawing.FiducialImageEngine
Rendering engine for fiducials into a gray scale image.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
circle
(double cx, double cy, double radius) void
configure
(int borderPixels, int markerPixels) Specifies image size and the border.void
configure
(int borderPixels, int markerWidth, int markerHeight) void
int
getBlack()
int
getGray()
int
getWhite()
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
setBlack
(int black) void
setGray
(double value) Sets the gray scale value of the shape.void
setWhite
(int white) void
square
(double x0, double y0, double width0, double thickness) Methods inherited from class boofcv.alg.drawing.FiducialRenderEngine
rectangleWH, square
-
Field Details
-
gray
-
-
Constructor Details
-
FiducialImageEngine
public FiducialImageEngine()
-
-
Method Details
-
configure
public void configure(int borderPixels, int markerPixels) Specifies image size and the border.- Parameters:
borderPixels
- size of white border around documentmarkerPixels
- size of workable region inside the document
-
configure
public void configure(int borderPixels, 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 width0, double thickness) - Specified by:
square
in classFiducialRenderEngine
-
draw
- Specified by:
draw
in classFiducialRenderEngine
-
inputToDocument
- Specified by:
inputToDocument
in classFiducialRenderEngine
-
getBorderPixels
public int getBorderPixels() -
getGray
-
getGrayF32
-
getWhite
public int getWhite() -
setWhite
public void setWhite(int white) -
getBlack
public int getBlack() -
setBlack
public void setBlack(int black)
-