Package boofcv.alg.fiducial.aztec
Class AztecGenerator
java.lang.Object
boofcv.alg.fiducial.aztec.AztecGenerator
Generates an image of an Aztec Code marker as specified in ISO/IEC 24778:2008(E)
-
Field Summary
Modifier and TypeFieldDescriptionprotected Point2D_I16
protected int
double
How wide the square which encloses the marker isprotected PackedArrayPoint2D_I16
Location of each bit in marker square coordinatesprotected double
protected int
protected @Nullable FiducialRenderEngine
Used to render the markerprotected double
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
computeDataBitCoordinates
(AztecCode marker, PackedArrayPoint2D_I16 coordinates) Computes the coordinate of each bit in the marker in units of squares as specified in Figure 5.protected void
locatorPattern
(double tl_x, double tl_y, int ringCount, AztecPyramid locator) Renders the locator pattern given it's top-left corner of the outermost ring.protected void
orientationPattern
(double tl_x, double tl_y, int moduleCount) protected void
referenceGridLine
(int tl_x, int tl_y, int dx, int dy, int count) static GrayU8
renderImage
(int pixelPerSquare, int border, AztecCode marker) Convenience function for rendering imagessetMarkerWidth
(double width) setRender
(FiducialRenderEngine render)
-
Field Details
-
markerWidth
public double markerWidthHow wide the square which encloses the marker is -
lengthInSquares
protected int lengthInSquares -
squareWidth
protected double squareWidth -
orientationSquareCount
protected int orientationSquareCount -
orientationLoc
protected double orientationLoc -
render
Used to render the marker -
messageCoordiantes
Location of each bit in marker square coordinates -
coordinate
-
-
Constructor Details
-
AztecGenerator
public AztecGenerator()
-
-
Method Details
-
renderImage
Convenience function for rendering images -
render
-
locatorPattern
Renders the locator pattern given it's top-left corner of the outermost ring. This does NOT include the orientation pattern. -
orientationPattern
protected void orientationPattern(double tl_x, double tl_y, int moduleCount) -
referenceGridLine
protected void referenceGridLine(int tl_x, int tl_y, int dx, int dy, int count) -
computeDataBitCoordinates
Computes the coordinate of each bit in the marker in units of squares as specified in Figure 5. Coordinate system will have (0, 0) be the marker's center. +x right and +y down.- Parameters:
coordinates
- Coordinates are encoded as interleaved (row, col)
-
setMarkerWidth
-
setRender
-