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
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcircle(double cx, double cy, double radius) voidconfigure(int borderPixels, int markerPixels) Specifies image size and the border.voidconfigure(int borderPixels, int markerWidth, int markerHeight) voidintgetBlack()intgetGray()intgetWhite()voidinit()Init needs to be called for each new fiducial.voidinputToDocument(double x, double y, Point2D_F64 document) voidrectangle(double x0, double y0, double x1, double y1) voidsetBlack(int black) voidsetGray(double value) Sets the gray scale value of the shape.voidsetWhite(int white) voidsquare(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:FiducialRenderEngineInit needs to be called for each new fiducial.- Specified by:
initin classFiducialRenderEngine
-
setGray
public void setGray(double value) Description copied from class:FiducialRenderEngineSets the gray scale value of the shape. 0.0 = black. 1.0 = white.- Specified by:
setGrayin classFiducialRenderEngine
-
circle
public void circle(double cx, double cy, double radius) - Specified by:
circlein classFiducialRenderEngine
-
rectangle
public void rectangle(double x0, double y0, double x1, double y1) - Specified by:
rectanglein classFiducialRenderEngine
-
square
public void square(double x0, double y0, double width0, double thickness) - Specified by:
squarein classFiducialRenderEngine
-
draw
- Specified by:
drawin classFiducialRenderEngine
-
inputToDocument
- Specified by:
inputToDocumentin 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)
-