Package boofcv.alg.fiducial.qrcode
Class QrCodeBinaryGridReader<T extends ImageGray<T>>
java.lang.Object
boofcv.alg.fiducial.qrcode.QrCodeBinaryGridReader<T>
Reads binary values from the qr code's grid. Top left corner of the qr code is it's origin. +x = right and +y = down
same as it is in images.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
gridToImage
(double row, double col, Point2D_F64 image) void
gridToImage
(float row, float col, Point2D_F32 image) void
imageToGrid
(float x, float y, Point2D_F32 grid) void
imageToGrid
(Point2D_F32 pixel, Point2D_F32 grid) void
imageToGrid
(Point2D_F64 pixel, Point2D_F64 grid) Converts a pixel coordinate into a grid coordinate.float
read
(float row, float col) int
readBit
(int row, int col) Reads a bit from the qr code's data matrix while adjusting for location distortions using known feature locations.void
readBitIntensity
(int row, int col, DogArray_F32 intensity) Reads intensity values around the location of each bit.void
void
setLensDistortion
(int width, int height, @Nullable LensDistortionNarrowFOV model) void
void
setMarkerUnknownVersion
(QrCode qr, float threshold) void
setSquare
(Polygon2D_F64 square, float threshold)
-
Field Details
-
BIT_INTENSITY_SAMPLES
public static final int BIT_INTENSITY_SAMPLES- See Also:
-
-
Constructor Details
-
QrCodeBinaryGridReader
-
-
Method Details
-
setImage
-
setLensDistortion
public void setLensDistortion(int width, int height, @Nullable @Nullable LensDistortionNarrowFOV model) -
setMarker
-
setSquare
-
setMarkerUnknownVersion
-
imageToGrid
-
imageToGrid
-
imageToGrid
Converts a pixel coordinate into a grid coordinate. -
gridToImage
-
gridToImage
-
read
public float read(float row, float col) -
readBitIntensity
Reads intensity values around the location of each bit.- Parameters:
row
- grid rowcol
- grid columnintensity
- (Output) Storage for intensity values
-
readBit
public int readBit(int row, int col) Reads a bit from the qr code's data matrix while adjusting for location distortions using known feature locations.- Parameters:
row
- grid rowcol
- grid column- Returns:
- 0 or 1 value for the bit
-