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
-
Method Summary
Modifier and TypeMethodDescriptionint
getGray()
protected void
initialize
(QrCode qr) Generates a QR Code with the specified message.void
setBorderModule
(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:QrCodeGenerator
Generates a QR Code with the specified message. An exception is thrown if the message is too long to be encoded.- Overrides:
render
in classQrCodeGenerator
-
initialize
- Overrides:
initialize
in 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
-