Package boofcv.alg.fiducial.qrcode
Class QrCodeGeneratorImage
java.lang.Object
boofcv.alg.fiducial.qrcode.QrGeneratorBase<QrCodeGenerator>
boofcv.alg.fiducial.qrcode.QrCodeGenerator
boofcv.alg.fiducial.qrcode.QrCodeGeneratorImage
Renders a QR Code inside a gray scale image. To change the color you need to change it in the renderer, which can
be accessed with
getRenderer().-
Field Summary
Fields inherited from class boofcv.alg.fiducial.qrcode.QrGeneratorBase
bitLocations, markerWidth, moduleWidth, numModules, render, renderData -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetGray()protected voidinitialize(QrCode qr) Generates a QR Code with the specified message.voidsetBorderModule(int borderModule) Used to change the white border's size.Methods inherited from class boofcv.alg.fiducial.qrcode.QrGeneratorBase
positionPattern, setMarkerWidth, setRender, square, timingPattern
-
Constructor Details
-
QrCodeGeneratorImage
public QrCodeGeneratorImage(int pixelsPerModule)
-
-
Method Details
-
render
Description copied from class:QrCodeGeneratorGenerates a QR Code with the specified message. An exception is thrown if the message is too long to be encoded.- Overrides:
renderin classQrCodeGenerator
-
initialize
- Overrides:
initializein classQrCodeGenerator
-
getBorderModule
public int getBorderModule() -
setBorderModule
public void setBorderModule(int borderModule) Used to change the white border's size.- Parameters:
borderModule- Border size in units of modules
-
getRenderer
-
getGray
-
getGrayF32
-